Cache ~/.ghcup.

This commit is contained in:
Wen Kokke 2021-09-02 13:57:57 +01:00
parent 9780deb997
commit f331b37077
No known key found for this signature in database
GPG key ID: 7EB7DBBCEB539DB8

View file

@ -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