From ebfa1f81d2db26644340b2f2d574a795d36e1fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 23 Jan 2025 22:29:39 +0100 Subject: [PATCH] ci: parallelize checks If I ever get more runners, this will be a great speedup. --- .forgejo/workflows/check.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index f4e299e..8cda163 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -4,15 +4,29 @@ 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: | + nix --version + # shellcheck disable=SC2016 + nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}' report-size: runs-on: nixos needs: build