Move action-cache before action-setup-haskell

This commit is contained in:
Muhammed Zakir 2020-09-25 10:13:20 +00:00 committed by GitHub
parent c6caa3aeff
commit d38c6b706e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,13 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v2
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-stack-${{ env.GITHUB_SHA }}
restore-keys: ${{ runner.os }}-stack-
- uses: actions/setup-haskell@v1.1
with:
@ -22,17 +29,9 @@ jobs:
stack-no-global: true
stack-setup-ghc: true
- run: echo ::set-env name=GITHUB_SHA::$GITHUB_SHA
shell: bash
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-stack-${{ env.GITHUB_SHA }}
restore-keys: ${{ runner.os }}-stack-
- name: Build
run: stack build