-
Notifications
You must be signed in to change notification settings - Fork 2
121 lines (111 loc) · 4.01 KB
/
build.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
on: [push, pull_request]
name: build
jobs:
fp-ieee:
name: fp-ieee
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4', '9.6', '9.8', '9.10', '9.12']
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
flags: ['', '--flags "fma3 f16c"', '--flags float128']
exclude:
# float128-0.1 doesn't support recent GHC (should we try --allow-newer?)
- ghc: '9.6'
flags: '--flags float128'
- ghc: '9.8'
flags: '--flags float128'
- ghc: '9.10'
flags: '--flags float128'
- ghc: '9.12'
flags: '--flags float128'
- os: macos-13
flags: '--flags float128'
- os: macos-14
flags: '--flags float128'
- os: windows-latest
flags: '--flags float128'
# Fragile
- os: macos-13
flags: '--flags "fma3 f16c"'
- os: macos-14
flags: '--flags "fma3 f16c"' # Makes no sense on Arm64
# macos-14 (Arm64) doesn't support older GHC
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
- os: macos-14
ghc: '8.6.5'
- os: macos-14
ghc: '8.8.4'
- os: macos-14
ghc: '8.10.7'
- os: macos-14
ghc: '9.0.2'
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Build
run: cabal build fp-ieee --ghc-options=-fno-ignore-asserts --enable-tests --enable-benchmarks ${{ matrix.flags }}
- name: Test
run: cabal test fp-ieee --ghc-options=-fno-ignore-asserts --enable-tests ${{ matrix.flags }}
if: ${{ runner.os != 'macOS' && runner.os != 'Windows' }}
# doctest on macOS/Windows is broken
- name: Test (without doctest)
run: cabal test fp-ieee:fp-ieee-test --ghc-options=-fno-ignore-asserts --enable-tests ${{ matrix.flags }}
if: ${{ runner.os == 'macOS' || runner.os == 'Windows' }}
rounded-hw:
name: rounded-hw
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ['8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4', '9.6', '9.8', '9.10', '9.12']
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
flags: ['', '--flags x87-long-double']
exclude:
- ghc: '9.4'
flags: '--flags x87-long-double'
- ghc: '9.6'
flags: '--flags x87-long-double'
- ghc: '9.8'
flags: '--flags x87-long-double'
- ghc: '9.10'
flags: '--flags x87-long-double'
- ghc: '9.12'
flags: '--flags x87-long-double'
# macos-14 (Arm64) doesn't support older GHC
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
- os: macos-14
ghc: '8.6.5'
- os: macos-14
ghc: '8.8.4'
- os: macos-14
ghc: '8.10.7'
- os: macos-14
ghc: '9.0.2'
# macos-14 (Arm64) doesn't support x87-long-double
- os: macos-14
flags: '--flags x87-long-double'
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Build
run: cabal build rounded-hw --ghc-options=-fno-ignore-asserts --enable-tests --enable-benchmarks ${{ matrix.flags }}
- name: Test
run: cabal test rounded-hw --ghc-options=-fno-ignore-asserts --enable-tests ${{ matrix.flags }}