Skip to content

Commit

Permalink
Attempt caching dist-newstyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Oct 4, 2023
1 parent 9160c76 commit a555253
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
- uses: actions/cache@v3
name: Cache cabal store
with:
path: ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
path:
- ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
- 'dist-newstyle/'
key: ${{ runner.os }}-benchmarks-cabal-cache-${{ hashFiles('**/*.cabal', 'cabal.project.ci.linux') }}
restore-keys: |
${{ runner.os }}-benchmarks-cabal-cache-
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ jobs:
- uses: actions/cache@v3
name: Cache cabal store
with:
path: ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
path:
- ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
- 'dist-newstyle/'
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-cache-${{ hashFiles('**/*.cabal', format('{0}', matrix.project-file)) }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-cabal-cache-
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/integrations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
- uses: actions/cache@v3
name: Cache cabal store
with:
path: ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
path:
- ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
- 'dist-newstyle/'
key: ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-${{ hashFiles('**/*.cabal', 'cabal.project.ci.linux') }}
restore-keys: |
${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ jobs:
run: |
sed -i '/ghc-options: -Werror/d' cabal.project.ci.linux
path:
- ${{ steps.setup-haskell.outputs.cabal-store || '~/.cabal/store' }}
- 'dist-newstyle/'

# Run `cabal install`.
- uses: actions/cache@v3
name: Cache cabal store
Expand Down

0 comments on commit a555253

Please sign in to comment.