Skip to content

Commit

Permalink
ci: adjust caching
Browse files Browse the repository at this point in the history
The stack rule missed the local workdir, and some keys were missing
hashes to make them get cleared when necessary.
  • Loading branch information
elopez committed Feb 22, 2023
1 parent 08ba244 commit 6eb4cdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,21 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.local/
key: ${{ runner.os }}-local-v4
key: ${{ runner.os }}-local-v5-${{ hashFiles('.github/scripts/install-*') }}

- name: Cache Stack
uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ runner.os }}-stack-v4
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-stack-v5-${{ hashFiles('package.yaml', 'stack.yaml') }}

- name: Cache Cabal
uses: actions/cache@v3
with:
path: ~/.cabal
key: ${{ runner.os }}-cabal-v4
key: ${{ runner.os }}-cabal-v5-${{ hashFiles('package.yaml', 'stack.yaml') }}

- name: Build Libraries
run: |
Expand Down

0 comments on commit 6eb4cdd

Please sign in to comment.