Skip to content

Commit 8b95e24

Browse files
committed
Switch GCC-12 CI job to GCC 13
This is to test an even more recent GCC release. Also, disable doc and package building attempts as those are already covered in other CI jobs.
1 parent ccc2032 commit 8b95e24

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ jobs:
391391
run: cd build; ctest . -V -L CORE -j2
392392

393393
# This job takes approximately 26 to 46 minutes
394-
check-ubuntu-22_04-cmake-gcc-12:
394+
check-ubuntu-22_04-cmake-gcc-13:
395395
runs-on: ubuntu-22.04
396396
steps:
397397
- uses: actions/checkout@v3
@@ -404,7 +404,13 @@ jobs:
404404
DEBIAN_FRONTEND: noninteractive
405405
run: |
406406
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
408414
- name: Confirm z3 solver is available and log the version installed
409415
run: z3 --version
410416
- name: Download cvc-5 from the releases page and make sure it can be deployed
@@ -417,29 +423,22 @@ jobs:
417423
uses: actions/cache@v3
418424
with:
419425
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
421427
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
424430
- name: ccache environment
425431
run: |
426432
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
427433
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
428434
- 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
432436
- name: Zero ccache stats and limit in size
433437
run: ccache -z --max-size=500M
434438
- name: Build with Ninja
435439
run: ninja -C build -j2
436440
- name: Print ccache stats
437441
run: ccache -s
438-
- name: Check if package building works
439-
run: |
440-
cd build
441-
ninja package
442-
ls *.deb
443442
- name: Run tests
444443
run: cd build; ctest . -V -L CORE -j2
445444

0 commit comments

Comments
 (0)