Skip to content

Commit f1e1dba

Browse files
committed
ci: use cache-nix-action
1 parent 129fdb6 commit f1e1dba

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.github/workflows/check.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: DeterminateSystems/nix-installer-action@main
11-
- uses: DeterminateSystems/magic-nix-cache-action@main
10+
- uses: nixbuild/nix-quick-install-action@master
11+
with:
12+
nix_conf: |
13+
keep-env-derivations = true
14+
keep-outputs = true
15+
- uses: nix-community/cache-nix-action@main
16+
with:
17+
primary-key: a-single-key
1218
- run: nix flake check

.github/workflows/docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21-
- uses: DeterminateSystems/nix-installer-action@main
22-
- uses: DeterminateSystems/magic-nix-cache-action@main
21+
- uses: nixbuild/nix-quick-install-action@master
22+
with:
23+
nix_conf: |
24+
keep-env-derivations = true
25+
keep-outputs = true
26+
- uses: nix-community/cache-nix-action@main
27+
with:
28+
primary-key: a-single-key
2329
- run: nix build .#manual
2430
- uses: actions/upload-pages-artifact@v3
2531
with:

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
persist-credentials: false
16-
- uses: DeterminateSystems/nix-installer-action@main
16+
- uses: nixbuild/nix-quick-install-action@master
1717
with:
18-
extra-conf: |
19-
experimental-features = no-url-literals pipe-operators
20-
- uses: DeterminateSystems/magic-nix-cache-action@main
18+
nix_conf: |
19+
keep-env-derivations = true
20+
keep-outputs = true
21+
- uses: nix-community/cache-nix-action@main
22+
with:
23+
primary-key: a-single-key
2124
- uses: navikt/github-app-token-generator@v1
2225
id: get-token
2326
with:

0 commit comments

Comments
 (0)