Skip to content

Commit 12c19ee

Browse files
committed
CI: cache-deps: add 'dist-newstyle' caching
1 parent c543dd9 commit 12c19ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/cache-deps.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ jobs:
103103
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-
104104
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
105105
106+
- name: dist-newstyle cache
107+
uses: actions/cache@v2
108+
env:
109+
cache-name: dist-newstyle
110+
with:
111+
path: dist-newstyle
112+
key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-${{ hashFiles('cabal.project') }}
113+
restore-keys: |
114+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-
115+
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
116+
106117
- if: ( runner.os != 'Windows' ) && ( matrix.ghc != '8.6.5' )
107118
name: Build
108119
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies

0 commit comments

Comments
 (0)