Skip to content

Commit

Permalink
CI: better caching on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jul 31, 2021
1 parent dc023b3 commit 0e69c0d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e69c0d

Please sign in to comment.