Skip to content

Commit d16c638

Browse files
Hasnepchrisseto
authored andcommitted
Replace magic-nix-cache-action
1 parent a506681 commit d16c638

File tree

8 files changed

+45
-18
lines changed

8 files changed

+45
-18
lines changed

.github/workflows/nightly_version_checks.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ jobs:
4646
secret-ids: |
4747
,sdlc/prod/github/actions_bot_token
4848
parse-json-secrets: true
49-
- uses: cachix/install-nix-action@v31
49+
- uses: nixbuild/nix-quick-install-action@v30
5050
with:
5151
github_access_token: ${{ secrets.GITHUB_TOKEN }}
5252
# Cache the nix store.
53-
- uses: DeterminateSystems/magic-nix-cache-action@v9
53+
- uses: nix-community/cache-nix-action@v6
54+
with:
55+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
56+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
5457
# Try to checkout a branch with the same name as provided in the dispatch
5558
- uses: actions/checkout@v4
5659
id: checkout

.github/workflows/pull_requests.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,28 @@ jobs:
9393
lint:
9494
runs-on: ubuntu-22.04
9595
steps:
96-
- uses: cachix/install-nix-action@v31
96+
- uses: nixbuild/nix-quick-install-action@v30
9797
with:
9898
github_access_token: ${{ secrets.GITHUB_TOKEN }}
9999
# Cache the nix store.
100-
- uses: DeterminateSystems/magic-nix-cache-action@v9
100+
- uses: nix-community/cache-nix-action@v6
101+
with:
102+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
103+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
101104
- uses: actions/checkout@v4
102105
- run: task ci:lint
103106
test-go:
104107
needs: [changes, lint]
105108
if: ${{ needs.changes.outputs.go-code == 'true' }}
106109
runs-on: ubuntu-22.04
107110
steps:
108-
- uses: cachix/install-nix-action@v31
111+
- uses: nixbuild/nix-quick-install-action@v30
109112
with:
110113
github_access_token: ${{ secrets.GITHUB_TOKEN }}
111-
- uses: DeterminateSystems/magic-nix-cache-action@v9
114+
- uses: nix-community/cache-nix-action@v6
115+
with:
116+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
117+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
112118
- uses: actions/checkout@v4
113119
- run: go test ./... -short
114120
test-charts-redpanda:

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ jobs:
4444
secret-ids: |
4545
,sdlc/prod/github/actions_bot_token
4646
parse-json-secrets: true
47-
- uses: cachix/install-nix-action@v31
47+
- uses: nixbuild/nix-quick-install-action@v30
4848
with:
4949
github_access_token: ${{ secrets.GITHUB_TOKEN }}
5050
# Cache the nix store.
51-
- uses: DeterminateSystems/magic-nix-cache-action@v9
51+
- uses: nix-community/cache-nix-action@v6
52+
with:
53+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
54+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
5255
- uses: actions/checkout@v4
5356
with:
5457
fetch-depth: 0

.github/workflows/test_connect.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
fail-fast: true
3030
runs-on: ubuntu-22.04
3131
steps:
32-
- uses: cachix/install-nix-action@v31
32+
- uses: nixbuild/nix-quick-install-action@v30
3333
with:
3434
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3535
# Cache the nix store.
36-
- uses: DeterminateSystems/magic-nix-cache-action@v9
36+
- uses: nix-community/cache-nix-action@v6
37+
with:
38+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
39+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
3740
- uses: actions/checkout@v4
3841
with:
3942
fetch-depth: 0

.github/workflows/test_connectors.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
fail-fast: true
3030
runs-on: ubuntu-22.04
3131
steps:
32-
- uses: cachix/install-nix-action@v31
32+
- uses: nixbuild/nix-quick-install-action@v30
3333
with:
3434
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3535
# Cache the nix store.
36-
- uses: DeterminateSystems/magic-nix-cache-action@v9
36+
- uses: nix-community/cache-nix-action@v6
37+
with:
38+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
39+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
3740
# Cache helm repositories.
3841
- uses: actions/cache@v4
3942
with:

.github/workflows/test_kminion.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
fail-fast: true
3030
runs-on: ubuntu-22.04
3131
steps:
32-
- uses: cachix/install-nix-action@v31
32+
- uses: nixbuild/nix-quick-install-action@v30
3333
with:
3434
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3535
# Cache the nix store.
36-
- uses: DeterminateSystems/magic-nix-cache-action@v9
36+
- uses: nix-community/cache-nix-action@v6
37+
with:
38+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
39+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
3740
# Cache helm repositories.
3841
- uses: actions/cache@v4
3942
with:

.github/workflows/test_operator.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
fail-fast: true
3030
runs-on: ubuntu-22.04
3131
steps:
32-
- uses: cachix/install-nix-action@v31
32+
- uses: nixbuild/nix-quick-install-action@v30
3333
with:
3434
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3535
# Cache the nix store.
36-
- uses: DeterminateSystems/magic-nix-cache-action@v9
36+
- uses: nix-community/cache-nix-action@v6
37+
with:
38+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
39+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
3740
# Cache helm repositories.
3841
- uses: actions/cache@v4
3942
with:

.github/workflows/test_redpanda.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ jobs:
3333
fail-fast: false
3434
runs-on: ubuntu-22.04
3535
steps:
36-
- uses: cachix/install-nix-action@v31
36+
- uses: nixbuild/nix-quick-install-action@v30
3737
with:
3838
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3939
# Cache the nix store.
40-
- uses: DeterminateSystems/magic-nix-cache-action@v9
40+
- uses: nix-community/cache-nix-action@v6
41+
with:
42+
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
43+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
4144
# Cache helm repositories.
4245
- uses: actions/cache@v4
4346
with:

0 commit comments

Comments
 (0)