From 0e69c0d32bc770be36e7b483d080c2a3cb4dac4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20P=2E=20Ren=C3=A9=20de=20Cotret?= Date: Sat, 31 Jul 2021 16:33:57 -0400 Subject: [PATCH] CI: better caching on Windows --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a30294..6498c49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,18 @@ jobs: choco uninstall ghc --yes - uses: actions/cache@v2 - name: Cache Haskell build artifacts + name: Cache Haskell build artifacts [Linux/MacOS] + if: matrix.os != 'windows-latest' with: path: ~/.stack - key: ${{ runner.os }}-v2-${{ hashFiles('stack.*') }} + key: ${{ runner.os }}-${{ hashFiles('stack.*') }} + + - uses: actions/cache@v2 + name: Cache Haskell build artifacts [Windows] + if: matrix.os == 'windows-latest' + with: + path: C:\Users\runneradmin\AppData\Roaming\stack\ + key: ${{ runner.os }}-${{ hashFiles('stack.*') }} - name: Build run: stack test --no-run-tests --ghc-options=-Werror