We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa1cf3 commit 63cb7b0Copy full SHA for 63cb7b0
1 file changed
.github/workflows/check_format.yml
@@ -10,8 +10,11 @@ jobs:
10
- uses: actions/checkout@v6
11
- name: "Install clang-format"
12
run: |
13
- sudo apt-get update
14
- sudo apt-get install clang-format
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
+ sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
15
+ sudo apt-get update
16
+ sudo apt-get install clang-format-21
17
+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-21 100
18
- name: "Format Codes"
19
run: find src/ -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) -exec clang-format -i {} +
20
- name: Check diff
0 commit comments