Skip to content

Commit 27c12fb

Browse files
committed
Force clean Nix setup on Linux CI
Signed-off-by: Nick Sweeting <git@sweeting.me>
1 parent 4c061eb commit 27c12fb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,25 @@ jobs:
202202
uses: DeterminateSystems/nix-installer-action@v22
203203
with:
204204
planner: linux-multi
205+
reinstall: true
205206
start-daemon: true
206207

207208
- name: Install Nix
208209
if: runner.os != 'Linux'
209210
uses: DeterminateSystems/nix-installer-action@v22
210211

212+
- name: Ensure Nix daemon is running on Linux
213+
if: runner.os == 'Linux'
214+
run: |
215+
sudo systemctl daemon-reload
216+
sudo systemctl reset-failed nix-daemon.socket || true
217+
sudo systemctl reset-failed nix-daemon.service || true
218+
sudo systemctl start nix-daemon.socket
219+
sudo systemctl start nix-daemon.service || true
220+
sudo systemctl --no-pager --full status nix-daemon.socket
221+
sudo systemctl --no-pager --full status nix-daemon.service || true
222+
nix --version
223+
211224
- name: Sanitize PATH after Nix install
212225
shell: bash
213226
run: |

0 commit comments

Comments
 (0)