Skip to content

Commit

Permalink
GitHub Actions: include hash of cabal file in the key for actions/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
msakai committed Aug 23, 2024
1 parent 1e6533a commit 4371b5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('*.cabal') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: |
Expand Down

0 comments on commit 4371b5d

Please sign in to comment.