Skip to content

Commit f2058ce

Browse files
authored
chore(ci): Use the lastest version of clang-format-18 & clang-tidy-18 (#3389)
The clang-format-18 provided by Ubuntu is version 18.1.3, while the latest is 18.1.8. This discrepancy causes mismatches with the versions many developers have installed locally. Pinning clang-format-18 to the latest minor release of version 18 would significantly improve the developer experience. Refer #3372
1 parent 1a50c0b commit f2058ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/kvrocks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
cache: false
7979
- name: Prepare Dependencies
8080
run: |
81+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
82+
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list
8183
sudo apt update
8284
sudo apt install -y clang-format-18 clang-tidy-18
8385
- name: Check with clang-format

0 commit comments

Comments
 (0)