Skip to content

Commit acc6e77

Browse files
jfrocheyvan-sraka
authored andcommitted
feat: add ephemeral Nix install action for GitHub runners
1 parent cf14763 commit acc6e77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/nix-build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ jobs:
2323
- name: Checkout Repo
2424
uses: actions/checkout@v4
2525
- name: Install nix
26-
uses: cachix/install-nix-action@v31
27-
with:
28-
install_url: https://releases.nixos.org/nix/nix-2.31.2/install
26+
uses: ./.github/actions/nix-install-ephemeral
2927
- id: set-matrix
3028
name: Generate Nix Matrix
3129
run: |
3230
set -Eeu
33-
echo matrix="$(nix shell nixpkgs/405fc615369e0ea1b9c284c107ca4c3e1bc15774#nix-eval-jobs --command scripts/github-matrix.py checks legacyPackages)" >> "$GITHUB_OUTPUT"
31+
echo matrix="$(nix shell github:nix-community/nix-eval-jobs --command scripts/github-matrix.py checks legacyPackages)" >> "$GITHUB_OUTPUT"
3432
3533
nix-build-aarch64-linux:
3634
name: ${{ matrix.name }} (aarch64-linux)
@@ -97,7 +95,7 @@ jobs:
9795
run-tests:
9896
needs: [nix-build-aarch64-linux, nix-build-aarch64-darwin] #, nix-build-x86_64-linux]
9997
if: |
100-
!cancelled() &&
98+
!cancelled() &&
10199
(needs.nix-build-aarch64-linux.result == 'skipped' || needs.nix-build-aarch64-linux.result == 'success') &&
102100
(needs.nix-build-aarch64-darwin.result == 'skipped' || needs.nix-build-aarch64-darwin.result == 'success')
103101
uses: ./.github/workflows/test.yml

0 commit comments

Comments
 (0)