forked from symengine/symengine
-
Notifications
You must be signed in to change notification settings - Fork 0
252 lines (221 loc) · 7.63 KB
/
ci.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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
name: Build and test symengine
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.OS }}
name: "${{ matrix.BUILD_TYPE }}-${{ matrix.OS }}-${{ matrix.CC }} (${{ toJSON(matrix) }})"
strategy:
fail-fast: false
matrix:
include:
# Debug build (with BFD)
- BUILD_TYPE: Debug
WITH_BFD: yes
OS: ubuntu-16.04
CC: gcc
# Debug build (with BFD and SYMENGINE_THREAD_SAFE)
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_SYMENGINE_THREAD_SAFE: yes
OS: ubuntu-16.04
CC: gcc
# Debug build (with BFD, ECM, PRIMESIEVE and MPC)
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_ECM: yes
WITH_PRIMESIEVE: yes
WITH_MPC: yes
OS: ubuntu-16.04
CC: gcc
# Debug build (with BFD, Flint and Arb and INTEGER_CLASS from flint)
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_ARB: yes
INTEGER_CLASS: flint
WITH_MPC: yes
TEST_IN_TREE: yes
OS: ubuntu-16.04
CC: gcc
# Debug build (with BFD, MPFR and INTEGER_CLASS from gmpxx)
- BUILD_TYPE: Debug
WITH_SYMENGINE_RCP: yes
WITH_MPFR: yes
INTEGER_CLASS: gmpxx
OS: ubuntu-16.04
CC: gcc
# Debug build (with BFD and INTEGER_CLASS from boostmp)
- BUILD_TYPE: Debug
WITH_BFD: yes
INTEGER_CLASS: boostmp
OS: ubuntu-16.04
WITH_LATEST_GCC: yes
CC: gcc
# Debug build shared lib (with BFD)
- BUILD_TYPE: Debug
WITH_BFD: yes
BUILD_SHARED_LIBS: yes
OS: ubuntu-16.04
CC: gcc
# Release build (with BFD)
- WITH_BFD: yes
OS: ubuntu-16.04
CC: gcc
# Release shared build (with BFD)
- WITH_BFD: yes
BUILD_SHARED_LIBS: yes
OS: ubuntu-16.04
CC: gcc
## In-tree builds (we just check a few configurations to make sure they work):
# Debug build
- BUILD_TYPE: Debug
WITH_BFD: yes
TEST_IN_TREE: yes
OS: ubuntu-16.04
CC: gcc
- TEST_CLANG_FORMAT: yes
OS: ubuntu-16.04
CC: gcc
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main'
EXTRA_APT_PACKAGES: clang-format-11
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_PIRANHA: yes
MAKEFLAGS: -j2
BUILD_SHARED_LIBS: yes
CC: gcc
OS: ubuntu-16.04
EXTRA_APT_PACKAGES: "binutils-dev g++-4.8"
# This is not used, but was in travis config
# WITH_GCC_6: yes
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_PIRANHA: yes
INTEGER_CLASS: piranha
MAKEFLAGS: -j2
CC: gcc
OS: ubuntu-16.04
EXTRA_APT_PACKAGES: "g++-4.8"
- BUILD_TYPE: Debug
WITH_BFD: yes
WITH_LLVM: 6.0
WITH_BENCHMARKS_NONIUS: yes
CC: clang
OS: ubuntu-16.04
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main'
EXTRA_APT_PACKAGES: "clang-6.0 libstdc++-4.8-dev libgmp-dev llvm-6.0-dev"
- BUILD_TYPE: Release
CC: clang
OS: ubuntu-16.04
EXTRA_APT_PACKAGES: "clang libstdc++-4.8-dev libgmp-dev"
- BUILD_TYPE: Debug
WITH_LLVM: 3.8
OS: macos-latest
CC: clang
- BUILD_TYPE: Release
WITH_LLVM: 5.0
OS: macos-latest
CC: clang
- BUILD_TYPE: Debug
OS: macos-latest
CC: gcc
- BUILD_TYPE: Release
OS: macos-latest
CC: gcc
- BUILD_TYPE: Debug
WITH_SANITIZE: address
WITH_LLVM: 7.0
CC: clang
OS: ubuntu-16.04
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
EXTRA_APT_PACKAGES: "clang-7 llvm-7-dev"
- BUILD_TYPE: Debug
WITH_SANITIZE: undefined
WITH_LLVM: 7.0
CC: clang
OS: ubuntu-16.04
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
EXTRA_APT_PACKAGES: "clang-7 llvm-7-dev"
- BUILD_TYPE: Debug
WITH_SYMENGINE_RCP: yes
WITH_BFD: no
WITH_SANITIZE: memory
INTEGER_CLASS: boostmp
CC: clang
OS: ubuntu-18.04
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main'
EXTRA_APT_PACKAGES: "clang-7 llvm-7-dev"
- CONDA_ENV_FILE: symengine/utilities/matchpycpp/environment.yml
CC: gcc
OS: ubuntu-16.04
- MSYSTEM: MINGW64
ARCH: x86_64
OS: windows-2019
BUILD_TYPE: Release
- MSYSTEM: MINGW64
ARCH: x86_64
OS: windows-2019
BUILD_TYPE: Debug
- MSYSTEM: MINGW32
ARCH: i686
OS: windows-2019
BUILD_TYPE: Release
WITH_MPFR: yes
- MSYSTEM: MINGW32
ARCH: i686
OS: windows-2019
BUILD_TYPE: Debug
WITH_MPFR: yes
WITH_MPC: yes
env:
USE_GLIBCXX_DEBUG: ${{ matrix.USE_GLIBCXX_DEBUG }}
WITH_MPFR: ${{ matrix.WITH_MPFR }}
BUILD_BENCHMARKS: ${{ matrix.BUILD_BENCHMARKS }}
WITH_LLVM: ${{ matrix.WITH_LLVM }}
WITH_BENCHMARKS_NONIUS: ${{ matrix.WITH_BENCHMARKS_NONIUS }}
WITH_SYMENGINE_RCP: ${{ matrix.WITH_SYMENGINE_RCP }}
TEST_IN_TREE: ${{ matrix.TEST_IN_TREE }}
WITH_SYMENGINE_THREAD_SAFE: ${{ matrix.WITH_SYMENGINE_THREAD_SAFE }}
WITH_PRIMESIEVE: ${{ matrix.WITH_PRIMESIEVE }}
INTEGER_CLASS: ${{ matrix.INTEGER_CLASS }}
WITH_ARB: ${{ matrix.WITH_ARB }}
WITH_PIRANHA: ${{ matrix.WITH_PIRANHA }}
WITH_GCC_6: ${{ matrix.WITH_GCC_6 }}
CONDA_ENV_FILE: ${{ matrix.CONDA_ENV_FILE }}
WITH_BFD: ${{ matrix.WITH_BFD }}
WITH_FLINT: ${{ matrix.WITH_FLINT }}
EXTRA_APT_REPOSITORY: ${{ matrix.EXTRA_APT_REPOSITORY }}
EXTRA_APT_PACKAGES: ${{ matrix.EXTRA_APT_PACKAGES }}
TEST_CLANG_FORMAT: ${{ matrix.TEST_CLANG_FORMAT }}
WITH_ECM: ${{ matrix.WITH_ECM }}
WITH_LATEST_GCC: ${{ matrix.WITH_LATEST_GCC }}
OS: ${{ matrix.OS }}
WITH_FLINT_DEV: ${{ matrix.WITH_FLINT_DEV }}
CC: ${{ matrix.CC }}
WITH_COVERAGE: ${{ matrix.WITH_COVERAGE }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
WITH_SANITIZE: ${{ matrix.WITH_SANITIZE }}
WITH_MPC: ${{ matrix.WITH_MPC }}
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}
steps:
- name: Setup msys2
uses: msys2/setup-msys2@v2
if: matrix.MSYSTEM != ''
with:
msystem: ${{ matrix.MSYSTEM }}
update: true
install: mingw-w64-${{ matrix.ARCH }}-gcc mingw-w64-${{ matrix.ARCH }}-cmake python make git
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Build and test symengine
shell: msys2 {0}
if: matrix.MSYSTEM != ''
run: |
source bin/test_symengine_unix.sh
- name: Build and test symengine
shell: bash
if: matrix.MSYSTEM == ''
run: |
source bin/test_symengine_unix.sh