From 8122e0c137f82d2de08770be3a00cd91de157cce Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 7 Dec 2024 21:08:52 -0500 Subject: [PATCH] Split the release checks into three separate jobs (#1335) * Split the release checks into three separate jobs * Create an aggregat ejob for the matrix * derp --- .github/workflows/ci.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74fd043a8..6c7e35078 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -598,11 +598,17 @@ jobs: NIX_INSTALLER_LOG_DIRECTIVES: nix_installer=debug RUST_BACKTRACE: full - run-x86_64-linux-release-checks: - name: Run x86_64 Linux release checks + run-x86_64-linux-release-check-matrix: + name: Run x86_64 Linux release check matrix runs-on: UbuntuLatest64Cores256GX86 needs: [lints, build-x86_64-linux] if: contains(github.ref, 'release-') || contains(github.head_ref, 'release-') + strategy: + matrix: + command: + - nix flake check -L + - nix build -L --tarball-ttl 0 --keep-going .#hydraJobs.container-test.all.x86_64-linux.all + - nix build -L --tarball-ttl 0 --keep-going .#hydraJobs.vm-test.all.x86_64-linux.all permissions: id-token: "write" contents: "read" @@ -630,10 +636,18 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main with: use-gha-cache: false + - run: ${{ matrix.command }} - - run: nix flake check -L + run-x86_64-linux-release-checks: + name: Run x86_64 Linux release checks + runs-on: ubuntu-latest + needs: [run-x86_64-linux-release-check-matrix] + if: contains(github.ref, 'release-') || contains(github.head_ref, 'release-') + steps: + - run: "true" - run: | - nix build \ - -L --tarball-ttl 0 --keep-going \ - .#hydraJobs.container-test.all.x86_64-linux.all \ - .#hydraJobs.vm-test.all.x86_64-linux.all + echo "A dependent in the build matrix failed." + exit 1 + if: | + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled')