-
-
Notifications
You must be signed in to change notification settings - Fork 260
78 lines (70 loc) · 2.17 KB
/
ci.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
name: Linux
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
cabal:
runs-on: ubuntu-24.04
strategy:
matrix:
versions:
# latest
- ghc: latest
cabal: latest
args: --allow-newer=base,template-haskell
experimental: true
# a bit newer
- ghc: 9.8.2
cabal: 3.12.1.0
args: --allow-newer=base,template-haskell
experimental: false
# ghcup recommended
- ghc: 9.4.8
cabal: 3.12.1.0
args: --allow-newer=base,template-haskell
experimental: false
# debian stable
- ghc: 9.0.2
cabal: 3.4.1.0
args: --allow-newer=base,template-haskell
experimental: false
## 8.x
- ghc: 8.10.7
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
- ghc: 8.8.4
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
- ghc: 8.6.5
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
continue-on-error: ${{ matrix.versions.experimental }}
name: cabal ${{ matrix.versions.cabal }} - ghc ${{ matrix.versions.ghc }}
steps:
- uses: actions/checkout@v4
- name: cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: cabal-${{ runner.os }}-${{ matrix.versions.ghc }}
- name: install cabal and ghc
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}
- name: update
run: cabal v2-update
- name: build
run: cabal v2-build ${{ matrix.versions.args }} --enable-tests --enable-benchmarks all
- name: test
run: cabal v2-test ${{ matrix.versions.args }} --enable-tests --enable-benchmarks all