Skip to content

Commit

Permalink
Split the release checks into three separate jobs (#1335)
Browse files Browse the repository at this point in the history
* Split the release checks into three separate jobs

* Create an aggregat ejob for the matrix

* derp
  • Loading branch information
grahamc authored Dec 8, 2024
1 parent 121a77f commit 8122e0c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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')

0 comments on commit 8122e0c

Please sign in to comment.