Skip to content

Commit 4e9d72c

Browse files
committed
CI: add dist-newstyle cache
Since we now build all targets here - we may as well cache the `dist-newstyle` here.
1 parent dcfdc9c commit 4e9d72c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/cache.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ jobs:
108108
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
109109
${{ env.cache-name }}-${{ runner.os }}-
110110
111+
- name: dist-newstyle cache
112+
uses: actions/cache@v2
113+
env:
114+
cache-name: dist-newstyle
115+
with:
116+
path: ${{ steps.HaskEnvSetup.outputs.cabal-store }}
117+
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-${{ hashFiles('cabal.project') }}
118+
restore-keys: |
119+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-
120+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
121+
${{ env.cache-name }}-${{ runner.os }}-
122+
111123
- name: Download all sources
112124
run: |
113125
cabal v2-build all --only-download

0 commit comments

Comments
 (0)