-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (56 loc) · 1.66 KB
/
haskell.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
name: Haskell CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ghc: ['9.8', '9.6', '9.4', '9.2', '9.0', '8.10']
include:
- ghc: '9.8'
cabal: '3.10'
- ghc: '9.6'
cabal: '3.10'
- ghc: '9.4'
cabal: '3.10'
- ghc: '9.2'
cabal: '3.10'
- ghc: '9.0'
cabal: '3.10'
- ghc: '8.10'
cabal: '3.10'
steps:
- uses: actions/checkout@v4
name: Checkout Mary
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: actions/cache@v3
name: Cache ~/.cabal/
with:
path: |
~/.cabal/store
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ matrix.cabal }}-${{ hashFiles('**/mary.cabal') }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ matrix.cabal }}-${{ hashFiles('**/mary.cabal') }}
- name: Cabal update
run: cabal update
- name: Configure mary
run: cabal configure --enable-tests
- name: New install dependencies
run: cabal install --only-dependencies
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '3.0'
- name: Install graphviz
run: sudo apt-get install graphviz
- name: New build mary
run: |
cabal build --enable-tests
cabal install --overwrite-policy=always
- name: Run tests
run: |
cp ~/.cabal/bin/mary .
cabal new-run mary-tests -- --regex-exclude "dot|store"