-
Notifications
You must be signed in to change notification settings - Fork 65
193 lines (171 loc) · 5.66 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
name: Build and test symengine
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
matrix:
include:
- BUILD_TYPE: Debug
WITH_BFD: yes
PYTHON_VERSION: '3.12'
TEST_SYMPY: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Debug
WITH_BFD: yes
PYTHON_VERSION: '3.11'
TEST_SYMPY: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Debug
WITH_BFD: yes
PYTHON_VERSION: '3.10'
TEST_SYMPY: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Debug
WITH_BFD: yes
PYTHON_VERSION: '3.9'
TEST_SYMPY: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
BUILD_SHARED_LIBS: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
WITH_MPFR: yes
INTEGER_CLASS: gmpxx
WITH_NUMPY: no
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
WITH_MPC: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
WITH_MPFR: yes
PYTHON_VERSION: '3.8'
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.9'
WITH_MPC: yes
OS: ubuntu-20.04
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.9'
WITH_MPC: yes
INTEGER_CLASS: flint
WITH_FLINT: yes
OS: ubuntu-20.04
CC: gcc
#- BUILD_TYPE: Debug
# PYTHON_VERSION: '3.9'
# WITH_BFD: yes
# WITH_PIRANHA: yes
# OS: ubuntu-20.04
# CC: gcc
- BUILD_TYPE: Debug
PYTHON_VERSION: '3.8'
WITH_BFD: yes
BUILD_SHARED_LIBS: yes
OS: ubuntu-20.04
CC: clang
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
WITH_NUMPY: yes
OS: ubuntu-20.04
CC: clang
- BUILD_TYPE: Debug
PYTHON_VERSION: '3.10'
WITH_SYMPY: yes
WITH_LLVM: 14
WITH_SCIPY: yes
INTEGER_CLASS: 'boostmp'
PYTEST_ADDOPTS: '-k "not integer_nthroot"'
OS: ubuntu-22.04
EXTRA_APT_REPOSITORY: 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-14 main'
EXTRA_APT_PACKAGES: 'llvm-14'
- BUILD_TYPE: Debug
PYTHON_VERSION: '3.8'
WITH_SCIPY: yes
WITH_LLVM: 5.0
OS: macos-latest
CC: clang
- BUILD_TYPE: Release
PYTHON_VERSION: '3.9'
WITH_NUMPY: no
OS: macos-latest
CC: clang
- BUILD_TYPE: Debug
PYTHON_VERSION: '3.8'
WITH_NUMPY: no
OS: macos-latest
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
OS: macos-latest
CC: gcc
- BUILD_TYPE: Release
PYTHON_VERSION: '3.8'
OS: ubuntu-20.04
WITH_MPC: yes
WITH_MPFR: yes
WITH_FLINT: yes
WITH_SCIPY: yes
WITH_DOCS: yes
INTEGER_CLASS: flint
TEST_SYMPY: yes
CC: gcc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and test symengine
shell: bash
run: |
source bin/test_symengine_unix.sh
env:
PYTEST_ADDOPTS: ${{ matrix.PYTEST_ADDOPTS }}
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 }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
- name: Deploy Documentation
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.py') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.py')}}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./genDocs