Skip to content

Commit

Permalink
Merge pull request #115 from msakai/github-actions-hash-stack-yaml
Browse files Browse the repository at this point in the history
GitHub Actions: include stack.yaml contents into the key of the cache
  • Loading branch information
msakai authored Nov 10, 2024
2 parents 6eb5e14 + 9dabfc5 commit 9ded194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
name: Cache ~/.stack
with:
path: ${{ steps.setup-haskell.outputs.stack-root }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('toysolver.cabal') }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('toysolver.cabal', matrix.stack_yaml) }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
Expand Down

0 comments on commit 9ded194

Please sign in to comment.