ci: parallelize checks
All checks were successful
/ build (push) Successful in 1s
/ check (clippy) (push) Successful in 2s
/ check (module-ipv4-test) (push) Successful in 6s
/ check (module-ipv6-test) (push) Successful in 6s
/ check (module-nginx-test) (push) Successful in 7s
/ check (nextest) (push) Successful in 2s
/ check (treefmt) (push) Successful in 2s
/ report-size (push) Successful in 2s

If I ever get more runners, this will be a great speedup.
This commit is contained in:
Jalil David Salamé Messina 2025-01-23 22:29:39 +01:00
parent ec27e31336
commit 2e8d20f89d
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -4,15 +4,30 @@ jobs:
runs-on: nixos
steps:
- uses: https://git.salame.cl/actions/checkout@v4
- run: nix --version
- run: nix build --print-build-logs .#
- name: Build Package
run: |
nix --version
nix build --print-build-logs .#
check:
needs: build # we use the built binaries in the checks
runs-on: nixos
strategy:
matrix:
check:
- treefmt
- clippy
- nextest
- module-ipv4-test
- module-ipv6-test
- module-nginx-test
steps:
- uses: https://git.salame.cl/actions/checkout@v4
- run: nix --version
- run: nix flake check --keep-going --verbose --print-build-logs
- name: Check
run: |
set -x
nix --version
# shellcheck disable=SC2016
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
report-size:
runs-on: nixos
needs: build