From 4371b5dc3c3d748fb81e3c17d29c8a4b5cd6a524 Mon Sep 17 00:00:00 2001 From: Masahiro Sakai Date: Fri, 23 Aug 2024 23:58:50 +0900 Subject: [PATCH] GitHub Actions: include hash of cabal file in the key for actions/cache --- .github/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5f63850..90b2d35 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,7 +46,9 @@ jobs: name: Cache ~/.stack with: path: ~/.stack - key: ${{ runner.os }}-${{ matrix.ghc }}-stack + key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('*.cabal') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.ghc }}- - name: Build run: |