Skip to content

Commit 99bdab7

Browse files
antonisclaude
andcommitted
fix(ci): Keep LLVM apt setup for clang/lld/lldb, use pip for clang-format
Restore the apt LLVM v20 installation for clang, lld, and lldb (needed for native builds) and install clang-format v22 separately via pip since apt.llvm.org doesn't have v22 packages yet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fef3fd commit 99bdab7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/buildandtest.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,20 @@ jobs:
5151
- name: Install Dependencies
5252
run: yarn install
5353

54-
- name: Setup clang-format
54+
# Default of ubuntu and apt packages are too old compared to macos packages.
55+
# This is required for using a newer version of clang-format.
56+
- name: Setup clang V20
57+
run: |
58+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 20
59+
sudo apt-get install -y clang-20 lld-20 lldb-20
60+
61+
- name: Set clang V20 as default
62+
run: |
63+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-20 200
64+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-20 200
65+
clang --version
66+
67+
- name: Setup clang-format V22
5568
run: |
5669
pip install --break-system-packages clang-format==22.1.2
5770
clang-format --version

0 commit comments

Comments
 (0)