-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (54 loc) · 1.38 KB
/
haskell_stack.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 }}