linux.yml|fuzzing.yml: Upgrade to Clang 19

This commit is contained in:
Sebastian Pipping 2024-10-08 00:30:45 +02:00
parent 79f2761f75
commit 806939b8c3
3 changed files with 11 additions and 11 deletions

2
.ci.sh
View file

@ -39,7 +39,7 @@ if [[ ${RUNNER_OS} = macOS ]]; then
latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)" latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)"
export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}" export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}"
elif [[ ${RUNNER_OS} = Linux ]]; then elif [[ ${RUNNER_OS} = Linux ]]; then
export PATH="/usr/lib/llvm-18/bin:${PATH}" export PATH="/usr/lib/llvm-19/bin:${PATH}"
else else
echo "Unsupported RUNNER_OS \"${RUNNER_OS}\"." >&2 echo "Unsupported RUNNER_OS \"${RUNNER_OS}\"." >&2
exit 1 exit 1

View file

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

View file

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