Skip to content

Commit

Permalink
Give the integration test its own cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Oct 4, 2023
1 parent e991563 commit e9a23a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integrations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ jobs:
- uses: Swatinem/rust-cache@v2

# Integration tests run on a different runner with more space and CPUs.
# Therefore, it gets its own cache to avoid clobbering other Linux builds caches.
- uses: actions/cache@v3
name: Cache cabal store
with:
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') }}
key: ${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-integration-test-${{ hashFiles('**/*.cabal', 'cabal.project.ci.linux') }}
restore-keys: |
${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-
${{ runner.os }}-${{ env.GHC_VERSION }}-cabal-cache-integration-test
${{ runner.os }}-${{ env.GHC_VERSION }}-
${{ runner.os }}-
Expand Down

0 comments on commit e9a23a1

Please sign in to comment.