Skip to content

Commit 7086ead

Browse files
Switch to nix-community nix cache action (#9)
1 parent 07e79e7 commit 7086ead

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/deadnix.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: cachix/install-nix-action@v31
18+
19+
- name: Install Nix
20+
uses: nixbuild/nix-quick-install-action@v30
21+
22+
- uses: nix-community/cache-nix-action@v6
23+
with:
24+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
25+
restore-prefixes-first-match: nix-${{ runner.os }}-
26+
1927
- uses: astro/deadnix-action@main
2028
with:
2129
flags: "-l"

.github/workflows/flake-check.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: cachix/install-nix-action@v31
18+
19+
- name: Install Nix
20+
uses: nixbuild/nix-quick-install-action@v30
21+
22+
- uses: nix-community/cache-nix-action@v6
23+
with:
24+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
25+
restore-prefixes-first-match: nix-${{ runner.os }}-
26+
1927
- run: nix flake check

0 commit comments

Comments
 (0)