CI: invalidate caches

https://github.com/actions/cache/issues/2
This commit is contained in:
Richard Marko 2022-04-22 12:56:37 +02:00
parent d34710a046
commit af0d69d992
3 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,8 @@ jobs:
${{ steps.HaskEnvSetup.outputs.cabal-store }}
dist-newstyle
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-v2
- name: "Build"
run: cabal v2-build $cabalConfig

View File

@ -58,7 +58,8 @@ jobs:
${{ steps.HaskEnvSetup.outputs.cabal-store }}
dist-newstyle
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-v2-
- name: "Build"
run: cabal v2-build $cabalConfig

View File

@ -65,6 +65,7 @@ jobs:
${{ steps.HaskEnvSetup.outputs.cabal-store }}
dist-newstyle
key: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-${{ hashFiles( 'cabal.project.freeze' ) }}
# 2022-04-22: `v2-` added to invalidate corrupted caches, can be removed after one week
restore-keys: ${{ matrix.packageRoot }}-${{ runner.os }}-Cabal-${{ matrix.ghc }}-
- name: "Build"