Generalize cache key to just follow stack.yaml

This commit is contained in:
Bryan Richter 2026-02-13 10:10:10 +02:00
parent c9c601ab6e
commit 4c42c3b913
No known key found for this signature in database
GPG Key ID: B202264020068BFB

View File

@ -18,10 +18,8 @@ jobs:
path: | path: |
~/.ghcup ~/.ghcup
~/.stack ~/.stack
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }} key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml') }}
# If there's no match for key, fall back to these: restore-keys: stack-${{ runner.os }}-
restore-keys: |
${{ runner.os }}-
- uses: haskell/ghcup-setup@v1 - uses: haskell/ghcup-setup@v1
with: with:
stack-hook: true stack-hook: true