Add cache
This commit is contained in:
parent
8f127843ac
commit
b056e06c77
1 changed files with 9 additions and 4 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -1,15 +1,20 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
name: build
|
name: build
|
||||||
jobs:
|
jobs:
|
||||||
runhaskell:
|
build:
|
||||||
name: Hello World
|
name: Build
|
||||||
runs-on: ubuntu-latest # or macOS-latest, or windows-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-haskell@v1.1
|
- uses: actions/setup-haskell@v1.1
|
||||||
with:
|
with:
|
||||||
# cabal-version: 'latest'. Omitted, but defalts to 'latest'
|
|
||||||
enable-stack: true
|
enable-stack: true
|
||||||
stack-version: 'latest'
|
stack-version: 'latest'
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.stack
|
||||||
|
.stack-work
|
||||||
|
key: ${{ hashFiles('stack.yaml') }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('newblog.cabal') }}
|
||||||
- run: stack build
|
- run: stack build
|
||||||
- run: stack exec site build
|
- run: stack exec site build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue