-
Notifications
You must be signed in to change notification settings - Fork 208
92 lines (84 loc) · 2.3 KB
/
Copy pathhaskell.yml
File metadata and controls
92 lines (84 loc) · 2.3 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
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
name: Haskell CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
# ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10.4', '9.0.1']
ghc: ['9.0.1']
exclude:
- os: windows-latest
ghc: "8.0"
- os: windows-latest
ghc: "8.2"
- os: windows-latest
ghc: "8.4"
- os: windows-latest
ghc: "8.6"
- os: windows-latest
ghc: "8.10"
- os: macOS-latest
ghc: "8.0"
- os: macOS-latest
ghc: "8.2"
- os: macOS-latest
ghc: "8.4"
- os: macOS-latest
ghc: "8.6"
- os: macOS-latest
ghc: "8.8"
- os: macOS-latest
ghc: "9.0.1"
#- os: ubuntu-latest
# ghc: "9.0.1"
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.4'
- name: Cache
uses: actions/cache@v1
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
update: true
install: autoconf
# Temporary hack to get around #502 while cabal is fixed.
# remove when cabal fixed.
- if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: echo 'PATH_SEPARATOR=";"' >> $GITHUB_ENV
- if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: autoreconf -i
- if: matrix.os != 'windows-latest'
run: |
autoreconf -i
sh ./enable_doctest.sh
- name: Install dependencies
run: |
cabal update
cabal build --only-dependencies --enable-tests --disable-benchmarks
- name: Build
run: |
cabal build --enable-tests --disable-benchmarks all
- name: Run tests
run: cabal test all