Attempt to split up stack build.

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

View file

@ -65,27 +65,37 @@ jobs:
# Setup & Cache site builder
# Setup & Cache Agda, pandoc, and site builder
# - name: Cache Site Builder
# uses: actions/cache@v2
# id: cache-site-builder
# with:
# path: $GITHUB_WORKSPACE/.stack-work
# key: ${{ matrix.os }}-ghc-${{ matrix.ghc }}-agda-${{ matrix.agda }}
- name: Cache .stack-work
uses: actions/cache@v2
id: cache-stack-work
with:
path: $GITHUB_WORKSPACE/.stack-work
key: ${{ matrix.os }}-ghc-${{ matrix.ghc }}-agda-${{ matrix.agda }}
# - name: Build Site Builder
# if: steps.cache-site-builder.outputs.cache-hit != 'true'
# run: make build-deps
# shell: bash
- name: Build Agda
if: steps.cache-stack-work.outputs.cache-hit != 'true'
run: stack build Agda-${{ matrix.agda }}
shell: bash
- name: Build Pandoc
if: steps.cache-stack-work.outputs.cache-hit != 'true'
run: stack build pandoc-2.10.1
shell: bash
- name: Build Site Builder
if: steps.cache-stack-work.outputs.cache-hit != 'true'
run: stack build
shell: bash
# Build & Test Website
# - name: Build Website
# run: make build
# shell: bash
- name: Build Website
run: make build
shell: bash
# - name: Test Website
# run: make test
# shell: bash
- name: Test Website
run: make test
shell: bash