2024-06-02 16:18:21 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2025-03-09 12:37:16 +01:00
|
|
|
check-renovaterc:
|
|
|
|
runs-on: nixos
|
|
|
|
steps:
|
2025-03-09 21:50:22 +01:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2025-03-09 12:37:16 +01:00
|
|
|
- name: Validate renovaterc
|
|
|
|
run: |
|
|
|
|
nix --version
|
|
|
|
nix shell nixpkgs#renovate --command renovate-config-validator
|
2024-11-23 13:00:57 +01:00
|
|
|
build:
|
2024-06-02 16:18:21 +02:00
|
|
|
runs-on: nixos
|
|
|
|
steps:
|
2025-03-09 21:50:22 +01:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2025-01-23 22:29:39 +01:00
|
|
|
- name: Build Package
|
|
|
|
run: |
|
|
|
|
nix --version
|
|
|
|
nix build --print-build-logs .#
|
2025-03-16 19:25:48 +01:00
|
|
|
test:
|
2024-11-23 13:00:57 +01:00
|
|
|
needs: build # we use the built binaries in the checks
|
2024-06-02 16:18:21 +02:00
|
|
|
runs-on: nixos
|
|
|
|
steps:
|
2025-03-09 21:50:22 +01:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2025-03-16 19:25:48 +01:00
|
|
|
- name: Run tests
|
2025-01-23 22:29:39 +01:00
|
|
|
run: |
|
|
|
|
nix --version
|
2025-03-16 19:25:48 +01:00
|
|
|
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
|
|
|
|
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
2024-12-22 00:40:18 +01:00
|
|
|
report-size:
|
|
|
|
runs-on: nixos
|
|
|
|
needs: build
|
|
|
|
steps:
|
2025-03-09 21:50:22 +01:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2024-12-22 00:40:18 +01:00
|
|
|
- run: nix --version
|
|
|
|
- name: Generate size report
|
|
|
|
uses: https://git.salame.cl/jalil/nix-flake-outputs-size@main
|
|
|
|
with:
|
|
|
|
comment-on-pr: ${{ github.ref_name != 'main' }}
|
|
|
|
generate-artifact: ${{ github.ref_name == 'main' }}
|
|
|
|
do-comparison: true
|
|
|
|
job-name: report-size
|