@@ -241,6 +241,63 @@ jobs:
241
241
- name : Run tests
242
242
run : cd build; ctest . -V -L CORE -j2
243
243
244
+ check-ubuntu-22_04-cmake-gcc :
245
+ runs-on : ubuntu-22.04
246
+ steps :
247
+ - uses : actions/checkout@v2
248
+ with :
249
+ submodules : recursive
250
+ - name : Fetch dependencies
251
+ env :
252
+ # This is needed in addition to -yq to prevent apt-get from asking for
253
+ # user input
254
+ DEBIAN_FRONTEND : noninteractive
255
+ run : |
256
+ sudo apt-get update
257
+ sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc gdb g++ maven flex bison libxml2-utils dpkg-dev ccache doxygen z3 python2
258
+ - name : Confirm z3 solver is available and log the version installed
259
+ run : z3 --version
260
+ - name : Download cvc-5 from the releases page and make sure it can be deployed
261
+ run : |
262
+ wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux
263
+ chmod u+x cvc5
264
+ mv cvc5 /usr/local/bin
265
+ cvc5 --version
266
+ - name : Prepare ccache
267
+ uses : actions/cache@v2
268
+ with :
269
+ path : .ccache
270
+ key : ${{ runner.os }}-22.04-Release-${{ github.ref }}-${{ github.sha }}-PR
271
+ restore-keys : |
272
+ ${{ runner.os }}-22.04-Release-${{ github.ref }}
273
+ ${{ runner.os }}-22.04-Release
274
+ - name : ccache environment
275
+ run : |
276
+ echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
277
+ echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
278
+ - name : Configure using CMake
279
+ run : |
280
+ mkdir build
281
+ cd build
282
+ cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++
283
+ - name : Check that doc task works
284
+ run : |
285
+ cd build
286
+ ninja doc
287
+ - name : Zero ccache stats and limit in size
288
+ run : ccache -z --max-size=500M
289
+ - name : Build with Ninja
290
+ run : cd build; ninja -j2
291
+ - name : Print ccache stats
292
+ run : ccache -s
293
+ - name : Check if package building works
294
+ run : |
295
+ cd build
296
+ ninja package
297
+ ls *.deb
298
+ - name : Run tests
299
+ run : cd build; ctest . -V -L CORE -j2
300
+
244
301
check-ubuntu-20_04-cmake-gcc-KNOWNBUG :
245
302
runs-on : ubuntu-20.04
246
303
steps :
0 commit comments