@@ -391,7 +391,7 @@ jobs:
391
391
run : cd build; ctest . -V -L CORE -j2
392
392
393
393
# This job takes approximately 26 to 46 minutes
394
- check-ubuntu-22_04-cmake-gcc-12 :
394
+ check-ubuntu-22_04-cmake-gcc-13 :
395
395
runs-on : ubuntu-22.04
396
396
steps :
397
397
- uses : actions/checkout@v3
@@ -404,7 +404,13 @@ jobs:
404
404
DEBIAN_FRONTEND : noninteractive
405
405
run : |
406
406
sudo apt-get update
407
- 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
407
+ sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc-13 gdb g++-13 maven flex bison libxml2-utils dpkg-dev ccache doxygen z3
408
+ # Update symlinks so that any use of gcc (including our regression
409
+ # tests) will use GCC 13.
410
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 \
411
+ --slave /usr/bin/g++ g++ /usr/bin/g++-13 \
412
+ --slave /usr/bin/gcov gcov /usr/bin/gcov-13
413
+ sudo ln -sf cpp-13 /usr/bin/cpp
408
414
- name : Confirm z3 solver is available and log the version installed
409
415
run : z3 --version
410
416
- name : Download cvc-5 from the releases page and make sure it can be deployed
@@ -417,29 +423,22 @@ jobs:
417
423
uses : actions/cache@v3
418
424
with :
419
425
path : .ccache
420
- key : ${{ runner.os }}-22.04-Release-gcc-12 -${{ github.ref }}-${{ github.sha }}-PR
426
+ key : ${{ runner.os }}-22.04-Release-gcc-13 -${{ github.ref }}-${{ github.sha }}-PR
421
427
restore-keys : |
422
- ${{ runner.os }}-22.04-Release-gcc-12 -${{ github.ref }}
423
- ${{ runner.os }}-22.04-Release-gcc-12
428
+ ${{ runner.os }}-22.04-Release-gcc-13 -${{ github.ref }}
429
+ ${{ runner.os }}-22.04-Release-gcc-13
424
430
- name : ccache environment
425
431
run : |
426
432
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
427
433
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
428
434
- name : Configure using CMake
429
- run : cmake -S . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER=/usr/bin/g++-12
430
- - name : Check that doc task works
431
- run : ninja -C build doc
435
+ run : cmake -S . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release
432
436
- name : Zero ccache stats and limit in size
433
437
run : ccache -z --max-size=500M
434
438
- name : Build with Ninja
435
439
run : ninja -C build -j2
436
440
- name : Print ccache stats
437
441
run : ccache -s
438
- - name : Check if package building works
439
- run : |
440
- cd build
441
- ninja package
442
- ls *.deb
443
442
- name : Run tests
444
443
run : cd build; ctest . -V -L CORE -j2
445
444
0 commit comments