mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-04 01:25:04 +03:00
Move action-cache before action-setup-haskell
This commit is contained in:
parent
c6caa3aeff
commit
d38c6b706e
15
.github/workflows/osx.yml
vendored
15
.github/workflows/osx.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user