CI: Add 'benchmark' to benchmark cache key.

For benchmark we build with optimizations, so the regular
cache is useless.
This commit is contained in:
John MacFarlane 2021-02-22 23:24:13 -08:00
parent 9767386676
commit 938f402dec

View file

@ -225,7 +225,7 @@ jobs:
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
key: benchmark-${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
- name: Cache cabal work
id: cabal-local
@ -233,7 +233,7 @@ jobs:
with:
path: |
dist-newstyle
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
key: benchmark-${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
- name: Install dependencies
run: |