Fix cabal store path for gh-action Ubuntu

This commit is contained in:
Pascal Grange 2023-06-09 00:53:40 +02:00 committed by GitHub
parent 04f198bf0b
commit b8dd3ecee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -223,15 +223,15 @@ steps:
## Haskell - Cabal ## Haskell - Cabal
We cache the elements of the Cabal store separately, as the entirety of `~/.cabal` can grow very large for projects with many dependencies. We cache the elements of the Cabal store.
```yaml ```yaml
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle - name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
~/.cabal/packages ~/.cache/cabal/packages
~/.cabal/store ~/.local/state/cabal
dist-newstyle dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-