Skip to content

Commit 433b6d0

Browse files
fix(ci): switch to DeterminateSystems/nix-installer-action
The cachix/install-nix-action@v27 fails on macOS runners due to existing _nixbld users (eDSRecordAlreadyExists error). The Determinate Systems installer handles this gracefully.
1 parent 8cbe734 commit 433b6d0

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/zig-tests.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838

3939
- name: Install Nix
40-
uses: cachix/install-nix-action@v27
41-
with:
42-
nix_path: nixpkgs=channel:nixos-unstable
40+
uses: DeterminateSystems/nix-installer-action@main
4341

4442
- name: Cache Zig
4543
uses: actions/cache@v4
@@ -86,9 +84,7 @@ jobs:
8684
- uses: actions/checkout@v4
8785

8886
- name: Install Nix
89-
uses: cachix/install-nix-action@v27
90-
with:
91-
nix_path: nixpkgs=channel:nixos-unstable
87+
uses: DeterminateSystems/nix-installer-action@main
9288

9389
- name: Cache Zig
9490
uses: actions/cache@v4
@@ -118,9 +114,7 @@ jobs:
118114
- uses: actions/checkout@v4
119115

120116
- name: Install Nix
121-
uses: cachix/install-nix-action@v27
122-
with:
123-
nix_path: nixpkgs=channel:nixos-unstable
117+
uses: DeterminateSystems/nix-installer-action@main
124118

125119
- name: Cache Zig
126120
uses: actions/cache@v4
@@ -147,9 +141,7 @@ jobs:
147141
- uses: actions/checkout@v4
148142

149143
- name: Install Nix
150-
uses: cachix/install-nix-action@v27
151-
with:
152-
nix_path: nixpkgs=channel:nixos-unstable
144+
uses: DeterminateSystems/nix-installer-action@main
153145

154146
- name: Cache Zig
155147
uses: actions/cache@v4
@@ -241,9 +233,7 @@ jobs:
241233
- uses: actions/checkout@v4
242234

243235
- name: Install Nix
244-
uses: cachix/install-nix-action@v27
245-
with:
246-
nix_path: nixpkgs=channel:nixos-unstable
236+
uses: DeterminateSystems/nix-installer-action@main
247237

248238
- name: Cache Zig
249239
uses: actions/cache@v4
@@ -292,9 +282,7 @@ jobs:
292282
- uses: actions/checkout@v4
293283

294284
- name: Install Nix
295-
uses: cachix/install-nix-action@v27
296-
with:
297-
nix_path: nixpkgs=channel:nixos-unstable
285+
uses: DeterminateSystems/nix-installer-action@main
298286

299287
- name: Setup Node.js
300288
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)