Skip to content

Commit b9ec8b3

Browse files
committed
use clang-format 20
Signed-off-by: doujiang24 <[email protected]>
1 parent 416bf52 commit b9ec8b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,11 @@ jobs:
337337

338338
- name: Install clang-format
339339
run: |
340-
sudo apt-get update
341-
sudo apt-get install -y clang-format-18
340+
wget https://apt.llvm.org/llvm.sh
341+
chmod +x llvm.sh
342+
sudo ./llvm.sh 20
343+
sudo apt-get install -y clang-format-20
344+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-20 100
342345
343346
- name: run clang-format
344347
run: |

0 commit comments

Comments
 (0)