-
Notifications
You must be signed in to change notification settings - Fork 2
168 lines (147 loc) · 6.31 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
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:
build:
strategy:
matrix:
include:
- name: ubuntu:production
os: ubuntu-latest
config: production --auto-download --all-bindings --editline --docs
cache-key: production
strip-bin: strip
python-bindings: true
build-documentation: true
check-examples: true
binary-name: cvc5-Linux
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: macos:production
os: macos-latest
config: production --auto-download --editline
# config: production --auto-download --python-bindings --editline
cache-key: production
strip-bin: strip
python-bindings: false # Temporarily disabling checking of python bindings on MacOS.
check-examples: true
binary-name: cvc5-macOS
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
- name: macos:production-arm64
os: macos-latest
config: production --auto-download --editline --arm64
# config: production --auto-download --python-bindings --editline --arm64
cache-key: production-arm64
strip-bin: strip
python-bindings: false # Temporarily disabling checking of python bindings on MacOS.
binary-name: cvc5-macOS-arm64
- name: win64:production
os: ubuntu-latest
config: production --auto-download --win64
cache-key: productionwin64
strip-bin: x86_64-w64-mingw32-strip
windows-build: true
binary-name: cvc5-Win64.exe
binary-ext: .exe
- name: ubuntu:production-clang
os: ubuntu-latest
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-latest
config: production --auto-download --assertions --tracing --unit-testing --all-bindings --editline --cocoa
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-latest
env: CC=clang CXX=clang++
config: production --auto-download --assertions --tracing --cln --gpl
cache-key: dbgclang
exclude_regress: 3-4
run_regression_args: --tester base --tester model --tester synth --tester abduct --tester unsat-core --tester dump
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
# cancel already running jobs for the same branch/pr/tag
concurrency:
group: build-${{ github.ref }}-${{ matrix.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@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
with-documentation: ${{ matrix.build-documentation }}
with-python-bindings: ${{ matrix.python-bindings }}
windows-build: ${{ matrix.windows-build }}
- name: Setup caches
uses: ./.github/actions/setup-cache
with:
cache-key: ${{ matrix.cache-key }}
- name: Configure and build
id: configure-and-build
uses: ./.github/actions/configure-and-build
with:
configure-env: ${{ matrix.env }}
configure-config: ${{ matrix.config }}
build-shared: ${{ matrix.build-shared }}
build-static: ${{ matrix.build-static }}
strip-bin: ${{ matrix.strip-bin }}
- name: ccache Statistics
run: ccache -s
- name: Run tests
if: matrix.run_regression_args
uses: ./.github/actions/run-tests
with:
build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
check-examples: ${{ matrix.check-examples }}
check-python-bindings: ${{ matrix.python-bindings }}
regressions-args: ${{ matrix.run_regression_args }}
regressions-exclude: ${{ matrix.exclude_regress }}
- name: Run tests
if: matrix.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.run_regression_args }}
regressions-exclude: 1-4
- name: Build documentation
if: matrix.build-documentation
uses: ./.github/actions/build-documentation
with:
build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
- name: Add binary to latest and release
if: matrix.binary-name && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/actions/store-binary
with:
binary: ${{ steps.configure-and-build.outputs.static-build-dir }}/bin/cvc5${{ matrix.binary-ext }}
binary-name: ${{ matrix.binary-name }}
# when using GITHUB_TOKEN, no further workflows are triggered
github-token-latest: ${{ secrets.GITHUB_TOKEN }}
github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
update-pr:
runs-on: ubuntu-latest
if: github.repository == 'cvc5/cvc5' && github.event_name == 'push' && github.ref == 'refs/heads/main'
concurrency:
group: update-pr
steps:
- name: Automatically update PR
uses: adRise/[email protected]
with:
token: ${{ secrets.ACTION_USER_TOKEN }}
base: 'main'
sort: 'created'
direction: 'asc'
required_approval_count: 1