Skip to content

Commit

Permalink
Add ~/.stack dir caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed May 2, 2020
1 parent d6dab8d commit 33449f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,19 @@ jobs:

steps:
- uses: actions/checkout@v1

- name: Cache stack dir
uses: actions/cache@v1
env:
cache-name: cache-stack-dir
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-${{ hashFiles('*.cabal') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build & Test
run: stack test --haddock --no-terminal --resolver ${{ matrix.resolver }}

0 comments on commit 33449f5

Please sign in to comment.