Move to clang 21 as mininum version and use it in CI (#7779)

Clang 21 is now the latest version available in Ubuntu LTS, so we can
move to it.
This commit is contained in:
Dana Jansens
2026-09-11 16:58:59 +00:00
committed by GitHub
parent 7d70f72bec
commit c45efd625f
5 changed files with 26 additions and 30 deletions
@@ -23,17 +23,13 @@ runs:
large-packages: false
# Select the LLVM release - by the cache key and the download.
#
# x86-64 uses the LLVM 19 monolithic package. That release only
# published a smaller community build for Linux AArch64, so AArch64 uses
# the official monolithic package, first available in LLVM 20.
- name: Select LLVM release
shell: bash
run: |
if [[ "${{ runner.arch }}" == "ARM64" ]]; then
echo "LLVM_RELEASE=20.1.8" >> "$GITHUB_ENV"
echo "LLVM_RELEASE=21.1.8" >> "$GITHUB_ENV"
else
echo "LLVM_RELEASE=19.1.7" >> "$GITHUB_ENV"
echo "LLVM_RELEASE=21.1.8" >> "$GITHUB_ENV"
fi
# Cache and install a recent version of LLVM. This uses the GitHub action