Skip to content

Commit b90af2d

Browse files
committed
feat(ci): update to clang-format 17and install clang-tidy 17. The server version is too old
1 parent 67a7b36 commit b90af2d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/pipeline.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ jobs:
169169
run: |
170170
wget https://apt.llvm.org/llvm.sh
171171
chmod +x llvm.sh
172-
sudo ./llvm.sh 16
172+
sudo ./llvm.sh 17
173173
174-
sudo apt update && sudo apt install -y clang-format-16
175-
sudo ln -sf $(which clang-format-16) $(which clang-format)
174+
sudo apt update && sudo apt install -y clang-format-17
175+
sudo ln -sf $(which clang-format-17) $(which clang-format)
176176
177-
test "$(clang-format --version)" == "$(clang-format-16 --version)"
177+
test "$(clang-format --version)" == "$(clang-format-17 --version)"
178178
179179
- name: Test format with clang format
180180
run: ./scripts/fmt.sh
@@ -185,6 +185,17 @@ jobs:
185185
steps:
186186
- uses: actions/checkout@v4
187187

188+
- name: Install clang-tidy version
189+
run: |
190+
wget https://apt.llvm.org/llvm.sh
191+
chmod +x llvm.sh
192+
sudo ./llvm.sh 17
193+
194+
sudo apt update && sudo apt install -y clang-tidy-17
195+
sudo ln -sf $(which clang-tidy-17) $(which clang-tidy)
196+
197+
test "$(clang-tidy --version)" == "$(clang-tidy-17 --version)"
198+
188199
- name: Make build directory
189200
run: cmake -Bbuild -H$GITHUB_WORKSPACE
190201

0 commit comments

Comments
 (0)