ci: parallelize checks
All checks were successful
/ build (push) Successful in 2s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-test) (push) Successful in 7s
/ check (module-ipv6-test) (push) Successful in 7s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 7s
All checks were successful
/ build (push) Successful in 2s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-test) (push) Successful in 7s
/ check (module-ipv6-test) (push) Successful in 7s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 7s
If I ever get more runners, this will be a great speedup.
This commit is contained in:
parent
ec27e31336
commit
ebfa1f81d2
1 changed files with 18 additions and 4 deletions
|
@ -4,15 +4,29 @@ jobs:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.salame.cl/actions/checkout@v4
|
- uses: https://git.salame.cl/actions/checkout@v4
|
||||||
- run: nix --version
|
- name: Build Package
|
||||||
- run: nix build --print-build-logs .#
|
run: |
|
||||||
|
nix --version
|
||||||
|
nix build --print-build-logs .#
|
||||||
check:
|
check:
|
||||||
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
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.salame.cl/actions/checkout@v4
|
- uses: https://git.salame.cl/actions/checkout@v4
|
||||||
- run: nix --version
|
- name: Check
|
||||||
- run: nix flake check --keep-going --verbose --print-build-logs
|
run: |
|
||||||
|
nix --version
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
|
||||||
report-size:
|
report-size:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: build
|
needs: build
|
||||||
|
|
Loading…
Add table
Reference in a new issue