From 6d7151a5e27b41e8ec8374fcdba90af31d4a6c8e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 30 Dec 2025 09:04:10 +0100 Subject: [PATCH] Adds gcc-14 support to Ubuntu workflow Adds support for gcc-14 to the Ubuntu 24.04 build workflow. This ensures compatibility with projects requiring gcc-14 and allows testing with the latest compiler versions. It installs gcc-14 and g++-14 if the configuration specifies 'gcc-14'. --- .github/workflows/ResInsightWithCache.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index acdcc93ac2..4d39494673 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -49,10 +49,10 @@ jobs: ri-unit-test-path: "ResInsight-tests", } - { - name: "Ubuntu 24.04 gcc", + name: "Ubuntu 24.04 gcc-14", os: ubuntu-24.04, - cc: "gcc", - cxx: "g++", + cc: "gcc-14", + cxx: "g++-14", build-python-module: true, execute-unit-tests: true, execute-pytests: true, @@ -155,6 +155,11 @@ jobs: sudo chmod +x llvm.sh sudo ./llvm.sh 19 all + - name: Install gcc-14 + if: contains( matrix.config.cc, 'gcc-14') + run: | + sudo apt-get install --option="APT::Acquire::Retries=3" gcc-14 g++-14 + - name: Install Qt uses: jurplel/install-qt-action@v4 with: