ci: fix cache-nix-action, use new config syntax
Flake checks / Check (pull_request) Successful in 2m46s Details

pull/150/head
teutat3s 2024-04-21 20:17:03 +02:00
parent 46c7c9ecb1
commit a0c6f0dc08
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 5 additions and 6 deletions

View File

@ -27,17 +27,16 @@ jobs:
uses: https://github.com/nix-community/cache-nix-action@v5
id: nix-store-cache
with:
key: cache-${{ runner.os }}-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
restore-keys: |
primary-key: cache-${{ runner.os }}-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
restore-prefixes-first-match: |
cache-${{ runner.os }}-nix-store-
gc-linux: true
gc-max-store-size-linux: 10000000000
purge-caches: true
purge-keys: cache-${{ runner.os }}-nix-store-
purge-created: true
purge-created-max-age: 42
purge: true
purge-prefixes: cache-${{ runner.os }}-nix-store-
purge-created: 42
- name: Prepare cachix
uses: https://github.com/cachix/cachix-action@v14