-
Notifications
You must be signed in to change notification settings - Fork 35
60 lines (58 loc) · 1.52 KB
/
haskell.yml
File metadata and controls
60 lines (58 loc) · 1.52 KB
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
name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
cabal: ["3.12"]
ghc: ["8.4.4", "8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.6.6", "9.8.4", "9.10.1"]
exclude:
- os: macos-latest
ghc: "8.4.4"
- os: macos-latest
ghc: "8.6.5"
- os: macos-latest
ghc: "8.8.4"
- os: macos-latest
ghc: "8.10.7"
- os: macos-latest
ghc: "9.0.2"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Cabal Update
run: |
cabal v2-update
cabal v2-freeze $CONFIG
- uses: actions/cache@v4
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
- name: Build all
run: |
cabal build all
cabal sdist all
- name: Run tests
run: |
cabal test all
- name: Build haddock
run: |
cabal haddock all