CI: Update the Clang pipeline to Clang 21

This commit is contained in:
Timothy Flynn 2026-02-17 19:36:12 -05:00 committed by Tim Flynn
parent f200920a6c
commit 372c7b9822
4 changed files with 8 additions and 7 deletions

View file

@ -21,7 +21,7 @@ inputs:
llvm_version:
description: 'LLVM version to install'
required: false
default: '20'
default: '21'
outputs:
gcc_version:

View file

@ -6,7 +6,7 @@ on:
env:
LADYBIRD_SOURCE_DIR: ${{ github.workspace }}
LLVM_VERSION: 20
LLVM_VERSION: 21
VCPKG_ROOT: ${{ github.workspace }}/Build/vcpkg
jobs:

View file

@ -4,7 +4,7 @@
Qt6 development packages, nasm, additional build tools, and a C++23 capable compiler are required.
We currently use gcc-14 and clang-20 in our CI pipeline. If these versions are not available on your system, see
We currently use gcc-14 and clang-21 in our CI pipeline. If these versions are not available on your system, see
[`Meta/find_compiler.py`](../Meta/find_compiler.py) for the minimum compatible version.
CMake 3.30 or newer must be available in $PATH.
@ -49,10 +49,10 @@ sudo wget -O /usr/share/keyrings/llvm-snapshot.gpg.key https://apt.llvm.org/llvm
# Optional: Verify the GPG key manually
# Use the key to authorize an entry for apt.llvm.org in apt sources list
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-20 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list
echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-21 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list
# Update apt package list and install clang and associated packages
sudo apt update -y && sudo apt install clang-20 clangd-20 clang-tools-20 clang-format-20 clang-tidy-20 lld-20 -y
sudo apt update -y && sudo apt install clang-21 clangd-21 clang-tools-21 clang-format-21 clang-tidy-21 lld-21 -y
```
- Alternative: Install gcc from [Ubuntu Toolchain PPA](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test):
@ -157,7 +157,7 @@ brew install autoconf autoconf-archive automake ccache cmake libtool nasm ninja
If you wish to use clang from homebrew instead:
```
brew install llvm@20
brew install llvm@21
```
If you also plan to use the Qt UI on macOS:
@ -173,7 +173,7 @@ brew install qt
### Windows:
WSL2 is the supported way to build Ladybird on Windows. A native build is also possible, however it is still experimental,
and there are several issues.
and there are several issues.
#### WSL2
- Create a WSL2 environment using one of the Linux distros listed above. Ubuntu or Fedora is recommended.

View file

@ -115,6 +115,7 @@ def pick_host_compiler(platform: Platform, cc: str, cxx: str, clang_only: bool)
"clang",
"clang-19",
"clang-20",
"clang-21",
]
gcc_candidates = [