1
0
Fork 0
forked from pub-solar/infra

ci: fix cache-nix-action, use new config syntax

This commit is contained in:
teutat3s 2024-04-21 20:17:03 +02:00
parent 46c7c9ecb1
commit a0c6f0dc08
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

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