Skip to content

Merge pull request #134 from Nike-Inc/release/1.1 #210

Merge pull request #134 from Nike-Inc/release/1.1

Merge pull request #134 from Nike-Inc/release/1.1 #210

name: Stack Haskell Builds
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
resolver:
- lts-13
- lts-14
- lts-15
- lts-16
- lts-17
- lts-18
- lts-19
- lts-20
- lts-21
experimental:
- false
include:
- resolver: nightly
experimental: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.stack
.stack-work
key: ${{ matrix.resolver }}
- name: Install Stack
uses: ./.github/actions/install_stack
- name: Install Project Dependencies
run: |
set -ex
stack --no-docker --no-terminal --install-ghc --stack-yaml stack-$RESOLVER.yaml --resolver $RESOLVER test --bench --only-dependencies
set +ex
env:
RESOLVER: ${{ matrix.resolver }}
- name: Build Project
run: |
set -ex
stack --no-docker --no-terminal --stack-yaml stack-$RESOLVER.yaml --resolver $RESOLVER test --bench --no-run-benchmarks --haddock --no-haddock-deps
set +ex
env:
RESOLVER: ${{ matrix.resolver }}