-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (62 loc) · 1.91 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
on: [push, pull_request]
name: build
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.4']
os: [ubuntu-latest]
include:
- ghc: '8.4.4'
resolver: 'lts-12.26'
flags: ''
- ghc: '8.6.5'
resolver: 'lts-14.27'
flags: ''
- ghc: '8.8.4'
resolver: 'lts-16.31'
flags: ''
- ghc: '8.10.7'
resolver: 'lts-18.28'
coveralls: true
flags: '--coverage'
- ghc: '9.0.2'
resolver: 'lts-19.18'
flags: ''
- ghc: '9.2.4'
resolver: 'nightly-2022-08-19'
flags: ''
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
stack-no-global: true
stack-setup-ghc: true
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Build
run: |
echo "resolver: ${{ matrix.resolver }}" > stack.yaml
stack build --test --no-run-tests --bench --no-run-benchmarks ${{ matrix.flags }}
- name: Test
run: stack test ${{ matrix.flags }}
- name: Create source tarball
run: stack sdist
- name: Coveralls
if: matrix.coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -L https://github.com/lehins/stack-hpc-coveralls/releases/download/v0.0.6.0/shc.tar.gz | tar -xz
./shc --repo-token="$COVERALLS_REPO_TOKEN" decision-diagrams decision-diagrams-test