Cache ~/.ghcup.
This commit is contained in:
parent
9780deb997
commit
f331b37077
1 changed files with 19 additions and 3 deletions
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
@ -20,6 +20,8 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: dev
|
||||
fetch-depth: 1
|
||||
submodules: true
|
||||
|
||||
- name: Update stack.yaml
|
||||
|
@ -31,6 +33,15 @@ jobs:
|
|||
|
||||
# Setup & Cache Haskell
|
||||
|
||||
- name: Cache Haskell
|
||||
uses: actions/cache@v2
|
||||
id: cache-haskell
|
||||
with:
|
||||
path: |
|
||||
~/.ghcup
|
||||
key: ${{ matrix.os }}-ghc-${{ matrix.ghc }}
|
||||
|
||||
|
||||
- name: Setup Haskell
|
||||
if: steps.cache-haskell.outputs.cache-hit != 'true'
|
||||
uses: haskell/actions/setup@v1
|
||||
|
@ -75,17 +86,22 @@ jobs:
|
|||
key: ${{ matrix.os }}-ghc-${{ matrix.ghc }}-agda-${{ matrix.agda }}
|
||||
|
||||
- name: Build Agda
|
||||
if: steps.cache-stack-work.outputs.cache-hit != 'true'
|
||||
if: steps.cache-site-builder.outputs.cache-hit != 'true'
|
||||
run: stack build Agda-${{ matrix.agda }}
|
||||
shell: bash
|
||||
|
||||
- name: Build Pandoc
|
||||
if: steps.cache-stack-work.outputs.cache-hit != 'true'
|
||||
if: steps.cache-site-builder.outputs.cache-hit != 'true'
|
||||
run: stack build pandoc-2.10.1
|
||||
shell: bash
|
||||
|
||||
- name: Build other dependencies
|
||||
if: steps.cache-site-builder.outputs.cache-hit != 'true'
|
||||
run: stack build --only-dependencies
|
||||
shell: bash
|
||||
|
||||
- name: Build Site Builder
|
||||
if: steps.cache-stack-work.outputs.cache-hit != 'true'
|
||||
if: steps.cache-site-builder.outputs.cache-hit != 'true'
|
||||
run: stack build
|
||||
shell: bash
|
||||
|
||||
|
|
Loading…
Reference in a new issue