ci: similar jobs use a single cache for Nix stores

Jobs that use the setup-nix action will share a single cache, which is created by a previous warm up Job.
This commit is contained in:
Andrei Dziahel
2023-12-12 18:46:40 -05:00
committed by Laurence Isla
parent 1cebc03313
commit c92f16a2cb
3 changed files with 30 additions and 38 deletions
+1 -2
View File
@@ -20,10 +20,9 @@ runs:
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v4.0.3
with:
key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix') }}
key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix', '.github/actions/setup-nix/*') }}
restore-keys: |
cache-nix-${{ runner.os }}-common-
restore-key-hit: true
- uses: cachix/cachix-action@v13
with:
name: postgrest