ci: reuse more previous caches (Nix & Stack)

This commit is contained in:
Andrei Dziahel
2024-02-05 21:51:32 +01:00
committed by Wolfgang Walther
parent 310d04065e
commit a45058ba02
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -98,8 +98,6 @@ jobs:
uses: ./.github/actions/setup-nix
with:
tools: tests withTools
# It seems like they are installing the same set of derivations, so we can assign them the same cache id.
# This would decrease the amount of caches dowloaded on merge cache step and will prevent disk space issues.
cache-id: common
- name: Run spec tests
@@ -202,6 +200,8 @@ jobs:
with:
path: ${{ matrix.cache }}
key: cache-stack-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}
restore-keys: |
cache-stack-${{ runner.os }}-
- name: Install dependencies
if: ${{ matrix.deps }}
run: ${{ matrix.deps }}