diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 160ac06b..c2d4569f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,9 @@ jobs: with: ghc-version: ${{ matrix.ghc }} cabal-version: ${{ matrix.cabal }} - - uses: actions/cache@v2 - name: Cache cabal store + + - uses: actions/cache/restore@v3 + name: Restore cabal store cache with: path: | ${{ steps.setup-haskell.outputs.cabal-store }} @@ -72,3 +73,12 @@ jobs: - name: Tests working-directory: ${{ matrix.package }} run: cabal v2-test + + - uses: actions/cache/save@v3 + name: Save cabal store cache + if: always() + with: + path: | + ${{ steps.setup-haskell.outputs.cabal-store }} + dist-newstyle + key: cabal-${{ matrix.package }}-${{ matrix.ghc }}-${{ hashFiles('**/cabal.GHC-*') }}-${{ github.sha }}