Actions: Upgrade Clang from 15 to 17

This commit is contained in:
Sebastian Pipping 2023-10-20 23:47:52 +02:00
parent a392427d3a
commit e07ee1ec32
2 changed files with 5 additions and 5 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-15/bin:${PATH}"
export PATH="/usr/lib/llvm-17/bin:${PATH}"
else
echo "Unsupported RUNNER_OS \"${RUNNER_OS}\"." >&2
exit 1

View file

@ -115,13 +115,13 @@ 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}-15 main"
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main"
sudo apt-get update # due to new repository
# NOTE: Please note the version-specific ${PATH} extension for Clang in .ci.sh
sudo apt-get install --yes --no-install-recommends -V \
clang-15 \
clang-format-15 \
libclang-rt-15-dev
clang-17 \
clang-format-17 \
libclang-rt-17-dev
- name: Install build dependencies (common)
run: |-
sudo apt-get install --yes --no-install-recommends -V \