-
Notifications
You must be signed in to change notification settings - Fork 4
93 lines (81 loc) · 2.32 KB
/
stack.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: stack
on:
push:
branches:
- master
- ci*
pull_request:
branches:
- master
- ci*
defaults:
run:
shell: bash
jobs:
stack:
name: ${{ matrix.os }} stack ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
ghc: 9.4.5
resolver: nightly-2023-05-17
- os: ubuntu-latest
ghc: 9.2.7
resolver: lts-20.21
- os: ubuntu-latest
ghc: 9.0.2
resolver: lts-19.33
- os: ubuntu-latest
ghc: 8.10.7
resolver: lts-18.28
- os: ubuntu-latest
ghc: 8.8.4
resolver: lts-16.31
- os: ubuntu-latest
ghc: 8.6.5
resolver: lts-14.27
- os: ubuntu-latest
ghc: 8.4.4
resolver: lts-12.26
- os: ubuntu-latest
ghc: 8.2.2
resolver: lts-11.22
- os: ubuntu-latest
ghc: 8.0.2
resolver: lts-9.21
# Fails due to upstream issue https://github.com/commercialhaskell/stack/issues/6124
# - os: ubuntu-20.04
# ghc: 7.10.3
# resolver: lts-6.35
# Can't install GHC 7.8.4 anymore on ubuntu runners
# - os: ubuntu-18.04
# ghc: 7.8.4
# resolver: lts-2.22
steps:
- uses: actions/checkout@v3
- name: Install GHC and stack with haskell-actions/setup
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
cabal-update: false
- name: Create stack.yaml
run: |
echo "resolver: ${{ matrix.resolver }}" > stack.yaml
echo "packages: [.]" >> stack.yaml
- uses: actions/cache@v3
with:
path: ${{ steps.setup.outputs.stack-root }}
key: ${{ runner.os }}-stack-${{ steps.setup.outputs.stack-version }}-ghc-${{ steps.setup.outputs.ghc-version }}-resolver-${{ matrix.resolver }}
restore-keys: ${{ runner.os }}-stack-${{ steps.setup.outputs.stack-version }}-ghc-${{ steps.setup.outputs.ghc-version }}-
- name: Build dependencies
run: stack build --system-ghc --dependencies-only
- name: Build
run: stack build --system-ghc
- name: Run tests
run: stack test --system-ghc