CI: Upgrade to Clang 18 (except clang-tidy and clang-format)

This commit is contained in:
Sebastian Pipping 2024-01-26 15:24:28 +01:00
parent fc0b026ce5
commit 6880fe4948
3 changed files with 11 additions and 11 deletions

2
.ci.sh
View file

@ -39,7 +39,7 @@ if [[ ${RUNNER_OS} = macOS ]]; then
export PATH="/usr/local/opt/coreutils/libexec/gnubin${PATH:+:}${PATH}"
export PATH="/usr/local/opt/findutils/libexec/gnubin${PATH:+:}${PATH}"
elif [[ ${RUNNER_OS} = Linux ]]; then
export PATH="/usr/lib/llvm-17/bin:${PATH}"
export PATH="/usr/lib/llvm-18/bin:${PATH}"
else
echo "Unsupported RUNNER_OS \"${RUNNER_OS}\"." >&2
exit 1

View file

@ -46,18 +46,18 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Clang 17
- name: Install Clang 18
run: |-
set -x
source /etc/os-release
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main"
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-18 main"
sudo apt-get update # due to new repository
sudo apt-get install --yes --no-install-recommends -V \
clang-17 \
libclang-rt-17-dev \
llvm-17
echo /usr/lib/llvm-17/bin >>"${GITHUB_PATH}"
clang-18 \
libclang-rt-18-dev \
llvm-18
echo /usr/lib/llvm-18/bin >>"${GITHUB_PATH}"
- name: Build Expat fuzzers
run: |

View file

@ -118,12 +118,12 @@ jobs:
set -x
source /etc/os-release
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main"
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-18 main"
sudo apt-get update # due to new repository
# NOTE: Please note the version-specific ${PATH} extension for Clang adding /usr/lib/llvm-17/bin in .ci.sh
# NOTE: Please note the version-specific ${PATH} extension for Clang adding /usr/lib/llvm-18/bin in .ci.sh
sudo apt-get install --yes --no-install-recommends -V \
clang-17 \
libclang-rt-17-dev
clang-18 \
libclang-rt-18-dev
- name: Install build dependencies (common)
run: |-
sudo apt-get install --yes --no-install-recommends -V \