From 1efc9b0cb29e9232b32e999704f2c4248aa59186 Mon Sep 17 00:00:00 2001 From: Martin Myrseth Date: Wed, 8 May 2024 21:58:02 +0200 Subject: [PATCH] github: Try again with actions/cache key --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b260035..66860e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,12 +41,13 @@ jobs: - name: Cache uses: actions/cache@v4 env: - cache-name: cache-ghc-${{ matrix.ghc }}-cabal + cache-name: cache-cabal with: path: ~/.cabal - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} + key: ${{ runner.os }}-build-ghc-${{ matrix.ghc }}-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build-ghc-${{ matrix.ghc }}-${{ env.cache-name }}- + ${{ runner.os }}-build-ghc-${{ matrix.ghc }}- ${{ runner.os }}-build- ${{ runner.os }}-