@@ -149,93 +149,6 @@ jobs:
149
149
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
150
150
SLACK_MESSAGE : " ${{ job.status == 'success' && 'Ubuntu 20.04 package built and uploaded successfully' || 'Ubuntu 20.04 package build failed' }}"
151
151
152
- ubuntu-18_04-package :
153
- runs-on : ubuntu-18.04
154
- env :
155
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
156
- steps :
157
- - uses : actions/checkout@v3
158
- with :
159
- submodules : recursive
160
- - name : Fetch dependencies
161
- run : |
162
- sudo apt-get update
163
- sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
164
- # remove libgcc-s1, which isn't normally available in Ubuntu 18.04
165
- target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
166
- # libgcc1 uses an epoch, thus the extra 1:
167
- sudo apt-get install -y --allow-downgrades --reinstall gcc g++ libgcc-s1- libstdc++6=$target liblsan0=$target libtsan0=$target libcc1-0=$target libgcc1=1:$target gdb=8.1.1-0ubuntu1
168
- - name : Download z3 4.11.0 from the python wheel package, extract it and make sure it can be deployed
169
- run : |
170
- sudo apt-get install --no-install-recommends -y unzip
171
- # download the z3 python wheel package
172
- wget -O z3.4.11.0.whl https://github.com/Z3Prover/z3/releases/download/z3-4.11.0/z3_solver-4.11.0.0-py2.py3-none-manylinux1_x86_64.whl
173
- # unpack the bundle using python
174
- unzip z3.4.11.0.whl
175
- # make z3 executable and move it in /usr/local/bin
176
- chmod u+x ./z3_solver-4.11.0.0.data/data/bin/z3
177
- mv ./z3_solver-4.11.0.0.data/data/bin/z3 /usr/local/bin/
178
- z3 --version
179
- - name : Download cvc-5 from the releases page and make sure it can be deployed
180
- run : |
181
- wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux
182
- chmod u+x cvc5
183
- mv cvc5 /usr/local/bin
184
- cvc5 --version
185
- - name : Prepare ccache
186
- uses : actions/cache@v3
187
- with :
188
- path : .ccache
189
- key : ${{ runner.os }}-18.04-Release-${{ github.ref }}-${{ github.sha }}-RELEASEPKG
190
- restore-keys : |
191
- ${{ runner.os }}-18.04-Release-${{ github.ref }}
192
- ${{ runner.os }}-18.04-Release
193
- - name : ccache environment
194
- run : |
195
- echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
196
- echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
197
- - name : Configure CMake
198
- run : |
199
- mkdir build
200
- cd build
201
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -Dsat_impl="minisat2;cadical"
202
- - name : Zero ccache stats and limit in size
203
- run : ccache -z --max-size=500M
204
- - name : Build using Ninja
205
- run : ninja -C build -j2
206
- - name : Print ccache stats
207
- run : ccache -s
208
- - name : Run CTest
209
- run : cd build; ctest . -V -L CORE -C Release -j2
210
- - name : Create packages
211
- id : create_packages
212
- run : |
213
- cd build
214
- ninja package
215
- deb_package_name="$(ls *.deb)"
216
- echo "deb_package=./build/$deb_package_name" >> $GITHUB_OUTPUT
217
- echo "deb_package_name=ubuntu-18.04-$deb_package_name" >> $GITHUB_OUTPUT
218
- - name : Get release info
219
- id : get_release_info
220
- uses :
bruceadams/[email protected]
221
- - name : Upload binary packages
222
- uses : actions/upload-release-asset@v1
223
- with :
224
- upload_url : ${{ steps.get_release_info.outputs.upload_url }}
225
- asset_path : ${{ steps.create_packages.outputs.deb_package }}
226
- asset_name : ${{ steps.create_packages.outputs.deb_package_name }}
227
- asset_content_type : application/x-deb
228
- - name : Slack notification of CI status
229
- uses : rtCamp/action-slack-notify@v2
230
- if : success() || failure()
231
- env :
232
- SLACK_CHANNEL : team_open_source
233
- SLACK_COLOR : ${{ job.status }}
234
- SLACK_USERNAME : Github Actions CI bot
235
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
236
- SLACK_MESSAGE : " ${{ job.status == 'success' && 'Ubuntu 18.04 package built and uploaded successfully' || 'Ubuntu 18.04 package build failed' }}"
237
-
238
-
239
152
homebrew-pr :
240
153
runs-on : macos-11
241
154
steps :
0 commit comments