-
Notifications
You must be signed in to change notification settings - Fork 3
263 lines (233 loc) · 10.5 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
253
254
255
256
257
258
259
260
261
262
263
on: [push, pull_request]
name: CI
# Prevents github from relying on clones of homebrew-core or homebrew-cask.
# https://github.com/orgs/Homebrew/discussions/4612
env:
HOMEBREW_NO_INSTALL_FROM_API: ""
jobs:
builds:
strategy:
matrix:
has-tag:
- ${{ startsWith(github.ref, 'refs/tags/') }}
build:
- name: ubuntu:production
os: ubuntu-20.04
config: production --auto-download --all-bindings --editline --docs --docs-ga -DBUILD_GMP=1
cache-key: production
strip-bin: strip
python-bindings: true
java-bindings: true
build-documentation: true
check-examples: true
package-name: cvc5-Linux-x86_64
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: ubuntu:production-arm64-cross
os: ubuntu-latest
config: production --auto-download --arm64
cache-key: production-arm64-cross
strip-bin: aarch64-linux-gnu-strip
package-name: cvc5-Linux-arm64
- name: macos:production
os: macos-13
config: production --auto-download --all-bindings --editline -DBUILD_GMP=1
cache-key: production
strip-bin: strip
python-bindings: true
java-bindings: true
check-examples: true
package-name: cvc5-macOS-x86_64
macos-target: 10.13
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: macos:production-arm64
os: macos-14
config: production --auto-download --all-bindings --editline -DBUILD_GMP=1
cache-key: production-arm64
strip-bin: strip
python-bindings: true
java-bindings: true
check-examples: true
package-name: cvc5-macOS-arm64
macos-target: 11.0
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: macos:production-arm64-cross
os: macos-13
config: production --auto-download --all-bindings --editline --arm64
cache-key: production-arm64-cross
strip-bin: strip
python-bindings: true
- name: win64:production
os: windows-latest
config: production --auto-download --all-bindings
cache-key: production-win64-native
strip-bin: strip
python-bindings: true
java-bindings: true
windows-build: true
shell: 'msys2 {0}'
check-examples: true
package-name: cvc5-Win64-x86_64
exclude_regress: 1-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: win64:production-cross
os: ubuntu-latest
config: production --auto-download --win64
cache-key: production-win64-cross
strip-bin: x86_64-w64-mingw32-strip
windows-build: true
- name: wasm:production
os: ubuntu-20.04
config: production --static --static-binary --auto-download --wasm=JS --wasm-flags='-s MODULARIZE'
cache-key: productionwasm
wasm-build: true
build-shared: false
build-static: true
- name: ubuntu:production-clang
os: ubuntu-20.04
env: CC=clang CXX=clang++
config: production --auto-download --no-poly
cache-key: productionclang
check-examples: true
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: ubuntu:production-dbg
os: ubuntu-20.04
config: production --auto-download --assertions --tracing --unit-testing --all-bindings --editline --cocoa --gpl
cache-key: dbg
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester proof --tester dump
python-bindings: true
- name: ubuntu:production-dbg-clang
os: ubuntu-20.04
env: CC=clang CXX=clang++
config: production --auto-download --assertions --tracing --cln --gpl
cache-key: dbgclang
exclude_regress: 3-4
run_regression_args: --tester cpc --tester alethe --tester base --tester model --tester synth --tester abduct --tester unsat-core --tester dump
# GPL versions
- name: ubuntu:production-gpl
os: ubuntu-20.04
config: production --auto-download --editline --gpl --cln --glpk --cocoa -DBUILD_GMP=1 -DBUILD_CLN=1
cache-key: production-gpl
strip-bin: strip
package-name: cvc5-Linux-x86_64
gpl-tag: -gpl
- name: macos:production-gpl
os: macos-13
config: production --auto-download --editline --gpl --cln --glpk --cocoa -DBUILD_GMP=1 -DBUILD_CLN=1
cache-key: production-gpl
strip-bin: strip
package-name: cvc5-macOS-x86_64
macos-target: 10.13
gpl-tag: -gpl
- name: macos:production-arm64-gpl
os: macos-14
config: production --auto-download --editline --gpl --cln --glpk --cocoa -DBUILD_GMP=1 -DBUILD_CLN=1
cache-key: production-arm64-gpl
strip-bin: strip
package-name: cvc5-macOS-arm64
macos-target: 11.0
gpl-tag: -gpl
exclude:
- has-tag: false
build:
name: ubuntu:production-gpl
- has-tag: false
build:
name: macos:production-gpl
- has-tag: false
build:
name: macos:production-arm64-gpl
name: ${{ matrix.build.name }}
runs-on: ${{ matrix.build.os }}
# cancel already running jobs for the same branch/pr/tag
concurrency:
group: build-${{ github.ref }}-${{ matrix.build.name }}-${{ github.ref != 'refs/heads/main' || github.run_id }}
cancel-in-progress: ${{ github.repository != 'cvc5/cvc5' || startsWith(github.ref, 'refs/pull/') }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
with-documentation: ${{ matrix.build.build-documentation }}
windows-build: ${{ matrix.build.windows-build }}
wasm-build: ${{ matrix.build.wasm-build }}
shell: ${{ matrix.build.shell }}
- name: Setup caches
uses: ./.github/actions/setup-cache
with:
cache-key: ${{ matrix.build.cache-key }}
install-ethos: ${{ contains(matrix.build.run_regression_args, '--tester cpc') }}
install-carcara: ${{ contains(matrix.build.run_regression_args, '--tester alethe') }}
shell: ${{ matrix.build.shell }}
- name: Configure and build
id: configure-and-build
uses: ./.github/actions/configure-and-build
with:
configure-env: ${{ matrix.build.env }}
configure-config: ${{ matrix.build.config }}
macos-target: ${{ matrix.build.macos-target }}
build-shared: ${{ matrix.build.build-shared }}
build-static: ${{ matrix.build.build-static }}
strip-bin: ${{ matrix.build.strip-bin }}
shell: ${{ matrix.build.shell }}
- name: Run tests
if: matrix.build.run_regression_args
uses: ./.github/actions/run-tests
with:
build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
check-examples: ${{ matrix.build.check-examples }}
check-python-bindings: ${{ matrix.build.python-bindings }}
regressions-args: ${{ matrix.build.run_regression_args }}
regressions-exclude: ${{ matrix.build.exclude_regress }}
shell: ${{ matrix.build.shell }}
- name: Run tests
if: matrix.build.run_regression_args
uses: ./.github/actions/run-tests
with:
build-dir: ${{ steps.configure-and-build.outputs.static-build-dir }}
check-examples: false
check-install: false
check-python-bindings: false
regressions-args: ${{ matrix.build.run_regression_args }}
regressions-exclude: 1-4
shell: ${{ matrix.build.shell }}
- name: Build documentation
if: matrix.build.build-documentation
uses: ./.github/actions/build-documentation
with:
build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
- name: Create and add shared package to latest and release
id: create-shared-package
if: matrix.build.package-name && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/actions/add-package
with:
build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
package-name: ${{ matrix.build.package-name }}-shared${{ matrix.build.gpl-tag }}
# when using GITHUB_TOKEN, no further workflows are triggered
github-token-latest: ${{ secrets.GITHUB_TOKEN }}
github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
shell: ${{ matrix.build.shell }}
- name: Create and add static package to latest and release
if: matrix.build.package-name && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/actions/add-package
with:
build-dir: ${{ steps.configure-and-build.outputs.static-build-dir }}
package-name: ${{ matrix.build.package-name }}-static${{ matrix.build.gpl-tag }}
# when using GITHUB_TOKEN, no further workflows are triggered
github-token-latest: ${{ secrets.GITHUB_TOKEN }}
github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
shell: ${{ matrix.build.shell }}
- name: Create and add JAR to latest and release
if: matrix.build.java-bindings && matrix.build.package-name && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/actions/add-jar
with:
install-path: ${{ steps.create-shared-package.outputs.install-path }}
jar-libs-dir: cvc5-libs
jar-name: ${{ matrix.build.package-name }}${{ matrix.build.gpl-tag }}-java-api
github-token-latest: ${{ secrets.GITHUB_TOKEN }}
github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
shell: ${{ matrix.build.shell }}