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