From a0c6f0dc08d9de794cb22279da2e25b5950e61dd Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 21 Apr 2024 20:17:03 +0200 Subject: [PATCH] ci: fix cache-nix-action, use new config syntax --- .forgejo/workflows/check.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index a44a3410..0034e9ef 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -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