Skip to content

Commit

Permalink
Merge pull request #27 from msakai/github-actions-cache-cabal-hash
Browse files Browse the repository at this point in the history
Include hash of cabal files in the key for actions/cache
  • Loading branch information
msakai authored Jul 29, 2024
2 parents 1418661 + 96f7496 commit de114a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ jobs:
name: Cache ~/.stack
with:
path: ${{ steps.setup-haskell.outputs.stack-root }}
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}
${{ runner.os }}-${{ matrix.ghc }}-
- name: Install packages (Linux)
if: runner.os == 'Linux'
Expand Down

0 comments on commit de114a9

Please sign in to comment.