Skip to content

Commit 187bff9

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/nix-eval.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,29 @@ 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
2731
- name: Install nix
2832
uses: ./.github/actions/nix-install-ephemeral
2933
with:
3034
push-to-cache: 'true'
3135
env:
3236
DEV_AWS_ROLE: ${{ secrets.DEV_AWS_ROLE }}
3337
NIX_SIGN_SECRET_KEY: ${{ secrets.NIX_SIGN_SECRET_KEY }}
38+
- name: Mount Nix Store
39+
uses: useblacksmith/stickydisk@v1
40+
with:
41+
key: ${{ github.repository }}-nix-cache-eval-${{ runner.os }}
42+
path: /nix
3443
- id: set-matrix
3544
name: Generate Nix Matrix
3645
run: |
3746
set -Eeu -o pipefail
3847
nix run --accept-flake-config .\#github-matrix -- checks legacyPackages
48+
49+
sudo systemctl stop nix-daemon.socket || true
50+
sudo systemctl stop nix-daemon.service || true
51+
sudo pkill -9 nix-daemon || true
52+
sleep 2

0 commit comments

Comments
 (0)