ci: use nix-fast-build to speedup checks
Should be a noticeable improvement c:
This commit is contained in:
parent
8787adae30
commit
08ea3271c1
1 changed files with 4 additions and 16 deletions
|
@ -16,28 +16,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nix --version
|
nix --version
|
||||||
nix build --print-build-logs .#
|
nix build --print-build-logs .#
|
||||||
check:
|
test:
|
||||||
needs: build # we use the built binaries in the checks
|
needs: build # we use the built binaries in the checks
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
check:
|
|
||||||
- treefmt
|
|
||||||
- clippy
|
|
||||||
- nextest
|
|
||||||
- module-ipv4-test
|
|
||||||
- module-ipv6-test
|
|
||||||
- module-nginx-test
|
|
||||||
- module-ipv4-only-test
|
|
||||||
- module-ipv6-only-test
|
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
- name: Check
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
set -x
|
|
||||||
nix --version
|
nix --version
|
||||||
# shellcheck disable=SC2016
|
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
|
||||||
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
|
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
||||||
report-size:
|
report-size:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: build
|
needs: build
|
||||||
|
|
Loading…
Add table
Reference in a new issue