Skip to content

Commit

Permalink
Merge pull request #15 from msakai/cache-key-cabal-hash
Browse files Browse the repository at this point in the history
GitHub Actions: include hash of cabal file in the key for actions/cache
  • Loading branch information
msakai authored Aug 24, 2024
2 parents 1d65701 + 4371b5d commit bc8b535
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 bc8b535

Please sign in to comment.