diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7cbba4de..2b81c19f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,10 +22,11 @@ jobs: fi - name: freeze run: cabal freeze - - uses: "actions/cache@v2" + - uses: "actions/cache/restore@v4" with: key: "${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}" path: "${{ steps.setup-haskell-cabal.outputs.cabal-store }} dist-newstyle" + restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- - name: Install dependencies run: cabal build all --enable-tests --enable-benchmarks --only-dependencies - name: build all @@ -59,10 +60,11 @@ jobs: fi - name: freeze run: cabal freeze - - uses: "actions/cache@v2" + - uses: "actions/cache/restore@v4" with: key: "${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}" path: "${{ steps.setup-haskell-cabal.outputs.cabal-store }} dist-newstyle" + restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- - name: Install dependencies run: cabal build all --enable-tests --enable-benchmarks --only-dependencies - name: build all @@ -98,10 +100,11 @@ jobs: fi - name: freeze run: cabal freeze - - uses: "actions/cache@v2" + - uses: "actions/cache@v4" with: key: "${{ runner.os }}-${{ matrix.ghc }}-build-cabal-${{ hashFiles('cabal.project.freeze') }}" path: "${{ steps.setup-haskell-cabal.outputs.cabal-store }} dist-newstyle" + restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- - name: Install dependencies run: cabal build all --enable-tests --enable-benchmarks --only-dependencies - name: build all