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: |
~/.ghcup
~/.stack
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }}
# If there's no match for key, fall back to these:
restore-keys: |
${{ runner.os }}-
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml') }}
restore-keys: stack-${{ runner.os }}-
- uses: haskell/ghcup-setup@v1
with:
stack-hook: true