-
Notifications
You must be signed in to change notification settings - Fork 82
95 lines (83 loc) · 1.98 KB
/
haskell-ci-simple.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
94
95
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
jobs:
main:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc:
- "8.0.2"
# Andreas, 2023-06-20, reduce CI load, keep only extremal GHC versions
# - "8.2.2"
# - "8.4.4"
# - "8.6.5"
# - "8.8.4"
# - "8.10.7"
# - "9.0.2"
# - "9.2.8"
- "9.4.8"
- "9.6.4"
- "9.8.1"
include:
- ghc: "9.8.1"
os: macos-latest
- ghc: "9.8.1"
os: windows-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "latest"
cabal-update: true
- uses: actions/cache@v4
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Versions
run: |
cabal --version
- name: Install alex & happy
run: |
cd ../
cabal install alex happy
- name: Unpack
run: |
cp src/Parser.y src/Parser.y.boot
cp src/Scan.x src/Scan.x.boot
cabal sdist --ignore-project --output-directory .
cabal get alex-*.tar.gz
- name: Build
run: |
cd alex-*/
cabal build all --enable-tests --enable-benchmarks
- name: Test
run: |
cd alex-*/
ALEX="$(cabal list-bin alex)"
export ALEX
cabal run --enable-tests alex:test:tests
- name: Haddock
run: |
cd alex-*/
cabal haddock --disable-documentation --haddock-all all
- name: Cabal check
run: |
cd alex-*/
cabal check