Skip to content

Commit 7a3cd73

Browse files
committed
feat(ci): test blacksmith stickydisk for eval
1 parent e3514c9 commit 7a3cd73

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/nix-eval.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ jobs:
2424
steps:
2525
- name: Checkout Repo
2626
uses: actions/checkout@v4
27+
- name: Create Nix Directories
28+
run: |
29+
sudo mkdir -p /nix/store
30+
sudo chmod -R 777 /nix
31+
- name: Mount Nix Store
32+
uses: useblacksmith/stickydisk@v1
33+
with:
34+
key: ${{ github.repository }}-nix-cache-eval-${{ runner.os }}
35+
path: /nix
36+
- name: Prevent chown in nix installation script
37+
run: |
38+
echo -e '#!/bin/sh\nexit 0' | sudo tee /usr/chown > /dev/null
2739
- name: Install nix
2840
uses: ./.github/actions/nix-install-ephemeral
2941
with:
@@ -36,3 +48,8 @@ jobs:
3648
run: |
3749
set -Eeu -o pipefail
3850
nix run --accept-flake-config .\#github-matrix -- checks legacyPackages
51+
52+
sudo systemctl stop nix-daemon.socket || true
53+
sudo systemctl stop nix-daemon.service || true
54+
sudo pkill -9 nix-daemon || true
55+
sleep 2

0 commit comments

Comments
 (0)