From 12c19ee710e0d395a1aa0534e1e17b6d6d61537b Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Thu, 2 Dec 2021 01:45:25 +0200 Subject: [PATCH] CI: cache-deps: add 'dist-newstyle' caching --- .github/workflows/cache-deps.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cache-deps.yml b/.github/workflows/cache-deps.yml index 386903b7ba8..ee656b8f13e 100644 --- a/.github/workflows/cache-deps.yml +++ b/.github/workflows/cache-deps.yml @@ -103,6 +103,17 @@ jobs: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}- ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}- + - name: dist-newstyle cache + uses: actions/cache@v2 + env: + cache-name: dist-newstyle + with: + path: dist-newstyle + key: ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}-${{ hashFiles('cabal.project') }} + restore-keys: | + ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-${{ env.HACKAGE_TIMESTAMP }}- + ${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}- + - if: ( runner.os != 'Windows' ) && ( matrix.ghc != '8.6.5' ) name: Build run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies