Skip to content

Commit

Permalink
Updated CI: Better cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhat committed Aug 9, 2024
1 parent 1c000ee commit c105f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies
run: |
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles(format('{0}.lock', matrix.stack-yaml)) }}

- name: Install dependencies
run: |
Expand Down

0 comments on commit c105f76

Please sign in to comment.