Skip to content

Commit a0b3e4d

Browse files
committed
Invalidate cache using versioning
1 parent c16f516 commit a0b3e4d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/bench.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
path: |
2727
~/.cabal/packages
2828
~/.cabal/store
29-
key: ${{ runner.os }}-${{ matrix.ghc }}-bench-${{ hashFiles('cabal.project') }}
29+
key: v2-${{ runner.os }}-${{ matrix.ghc }}-bench-${{ hashFiles('cabal.project') }}
3030
restore-keys: |
31-
${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
32-
${{ runner.os }}-${{ matrix.ghc }}-bench-
33-
${{ runner.os }}-${{ matrix.ghc }}
31+
v2-${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
32+
v2-${{ runner.os }}-${{ matrix.ghc }}-bench-
33+
v2-${{ runner.os }}-${{ matrix.ghc }}
3434
3535
- run: cabal update
3636

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ jobs:
7979
path: |
8080
${{ env.CABAL_PKGS_DIR }}
8181
${{ env.CABAL_STORE_DIR }}
82-
key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
82+
key: v2-${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
8383
restore-keys: |
84-
${{ runner.os }}-${{ matrix.ghc }}-bench-${{ hashFiles('cabal.project') }}
85-
${{ runner.os }}-${{ matrix.ghc }}-build-
86-
${{ runner.os }}-${{ matrix.ghc }}
84+
v2-${{ runner.os }}-${{ matrix.ghc }}-bench-${{ hashFiles('cabal.project') }}
85+
v2-${{ runner.os }}-${{ matrix.ghc }}-build-
86+
v2-${{ runner.os }}-${{ matrix.ghc }}
8787
8888
- run: cabal update
8989

0 commit comments

Comments
 (0)