@@ -365,6 +365,58 @@ jobs:
365
365
- name : Run tests
366
366
run : cd build; ctest . -V -L CORE -j2
367
367
368
+ check-ubuntu-22_04-cmake-gcc-12 :
369
+ runs-on : ubuntu-22.04
370
+ steps :
371
+ - uses : actions/checkout@v3
372
+ with :
373
+ submodules : recursive
374
+ - name : Fetch dependencies
375
+ env :
376
+ # This is needed in addition to -yq to prevent apt-get from asking for
377
+ # user input
378
+ DEBIAN_FRONTEND : noninteractive
379
+ run : |
380
+ sudo apt-get update
381
+ sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc-12 gdb g++-12 maven flex bison libxml2-utils dpkg-dev ccache doxygen z3
382
+ - name : Confirm z3 solver is available and log the version installed
383
+ run : z3 --version
384
+ - name : Download cvc-5 from the releases page and make sure it can be deployed
385
+ run : |
386
+ wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux
387
+ chmod u+x cvc5
388
+ mv cvc5 /usr/local/bin
389
+ cvc5 --version
390
+ - name : Prepare ccache
391
+ uses : actions/cache@v3
392
+ with :
393
+ path : .ccache
394
+ key : ${{ runner.os }}-22.04-Release-${{ github.ref }}-${{ github.sha }}-PR
395
+ restore-keys : |
396
+ ${{ runner.os }}-22.04-Release-gcc-12-${{ github.ref }}
397
+ ${{ runner.os }}-22.04-Release-gcc-12
398
+ - name : ccache environment
399
+ run : |
400
+ echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
401
+ echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
402
+ - name : Configure using CMake
403
+ run : cmake -S . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER=/usr/bin/g++-12
404
+ - name : Check that doc task works
405
+ run : ninja -C build doc
406
+ - name : Zero ccache stats and limit in size
407
+ run : ccache -z --max-size=500M
408
+ - name : Build with Ninja
409
+ run : ninja -C build -j2
410
+ - name : Print ccache stats
411
+ run : ccache -s
412
+ - name : Check if package building works
413
+ run : |
414
+ cd build
415
+ ninja package
416
+ ls *.deb
417
+ - name : Run tests
418
+ run : cd build; ctest . -V -L CORE -j2
419
+
368
420
# This job takes approximately 5 to 24 minutes
369
421
check-ubuntu-20_04-cmake-gcc-KNOWNBUG :
370
422
runs-on : ubuntu-20.04
0 commit comments