ci: revert cache-nix-action to v4

Upgrading c-n-action seems to break restoring Nix store rendering the cache useless (nix-community/cache-nix-action#27). This rolls the change back.
This commit is contained in:
Andrei Dziahel
2024-01-26 18:40:45 +01:00
committed by Wolfgang Walther
parent 071a3d436f
commit 411cf430ad
+3 -3
View File
@@ -18,10 +18,10 @@ runs:
with:
nix_version: '2.13.6'
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v5.0.1
uses: nix-community/cache-nix-action@v4.0.3
with:
primary-key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix', '.github/actions/setup-nix/*') }}
restore-prefixes-first-match: |
key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix', '.github/actions/setup-nix/*') }}
restore-keys: |
cache-nix-${{ runner.os }}-common-
- uses: cachix/cachix-action@v14
with: