From 201a48da2629a26a9bf858402335aae50d2f805a Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 5 Jan 2026 13:26:28 +0100 Subject: [PATCH] Update clang-19 install steps in CI workflow Replaced llvm.sh with manual addition of the LLVM APT repository for Ubuntu Noble in ResInsightWithCache.yml. Now installs clang-19 and related tools directly via apt-get, verifies installation, and provides more control and reliability over the setup process. --- .github/workflows/ResInsightWithCache.yml | 28 +++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index d23ff82cf3..4194938525 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -150,10 +150,30 @@ jobs: - name: Install clang-19 if: contains( matrix.config.cc, 'clang') run: | - sudo apt-get upgrade - wget https://apt.llvm.org/llvm.sh - sudo chmod +x llvm.sh - sudo ./llvm.sh 19 all + set -e + + # Add LLVM repository + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" | sudo tee /etc/apt/sources.list.d/llvm-19.list + echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" | sudo tee -a /etc/apt/sources.list.d/llvm-19.list + + # Update package list and install clang-19 + sudo apt-get update --option="APT::Acquire::Retries=3" + sudo apt-get install --option="APT::Acquire::Retries=3" -y \ + clang-19 \ + lldb-19 \ + lld-19 \ + clangd-19 \ + clang-tidy-19 \ + clang-format-19 \ + clang-tools-19 \ + libc++-19-dev \ + libc++abi-19-dev + + # Verify installation + clang-19 --version + clang++-19 --version + echo "clang-19 installation completed successfully" - name: Install gcc-14 if: contains( matrix.config.cc, 'gcc-14')