Dependencies now influence cache hash (#9)

This commit is contained in:
iko 2021-03-05 15:07:25 +03:00 committed by GitHub
parent b51d410a39
commit d430079e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,9 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.stack
key: ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
key: ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}-${{ hashFiles('**/*.cabal') }}
restore-keys: |
${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
${{ runner.os }}-build-stack-
- name: Build
run: stack build