-
Notifications
You must be signed in to change notification settings - Fork 59
43 lines (41 loc) · 1.01 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
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
cabal:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.6.4", "9.8.1"]
cabal: ["3.10.2.0"]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
name: build and test (cabal)
steps:
- uses: actions/checkout@v2
- name: Run Haskell
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: |
cabal build --enable-tests && cabal test
stack:
name: build and test (stack)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: "9.2.8"
enable-stack: true
stack-version: "latest"
- run: |
stack build && stack test