Skip to content

Commit

Permalink
fix dist-newstyle cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
larskuhtz committed Sep 19, 2024
1 parent b4eacd9 commit 0fbd045
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ jobs:
- uses: actions/cache/restore@v4
name: Restore dist-newstyle cache
id: cabal-dist-cache
env:
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.ghc }}-dist
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.*', '*.cabal', 'src/**', 'test/**') }}
key: ${{ env.key }}-${{ hashFiles('cabal.*', '*.cabal', 'src/**', 'test/**', 'bench/**', 'tools/**') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.ghc }}-
${{ env.key }}
- name: Install GHC and Cabal
uses: haskell-actions/setup@v2
Expand Down

0 comments on commit 0fbd045

Please sign in to comment.