Skip to content

Commit a749d99

Browse files
antonisclaude
andcommitted
fix(ci): Use apt.llvm.org for clang-format v22
The LLVM apt repo does have v22 packages (development branch). Use the standard llvm.sh + apt-get approach with update-alternatives, same as the original v20 setup but bumped to v22. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 99bdab7 commit a749d99

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/buildandtest.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,17 @@ jobs:
5353

5454
# Default of ubuntu and apt packages are too old compared to macos packages.
5555
# This is required for using a newer version of clang-format.
56-
- name: Setup clang V20
56+
- name: Setup clang-format V22
5757
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
58+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" 22
59+
sudo apt-get install -y clang-22 clang-format-22 lld-22 lldb-22
6060
61-
- name: Set clang V20 as default
61+
- name: Set clang-format V22 as default
6262
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
63+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-22 200
64+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-22 200
65+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-22 200
6566
clang --version
66-
67-
- name: Setup clang-format V22
68-
run: |
69-
pip install --break-system-packages clang-format==22.1.2
7067
clang-format --version
7168
7269
- name: Install Swiftly and Swift

0 commit comments

Comments
 (0)