Skip to content

Commit 5f890c9

Browse files
committed
run clang tidy in CI
1 parent 1b40113 commit 5f890c9

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,26 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v3
1616
- uses: pre-commit/action@v3.0.1
17+
18+
clang-tidy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Install LLVM 21
24+
run: |
25+
wget https://apt.llvm.org/llvm.sh
26+
chmod +x llvm.sh
27+
sudo ./llvm.sh 21
28+
sudo apt-get install -y clangd-21 clang-tidy-21
29+
30+
- name: Install dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y libzmq3-dev libsqlite3-dev
34+
35+
- name: Configure CMake
36+
run: cmake -B build
37+
38+
- name: Run clang-tidy
39+
run: ./run_clang_tidy.sh

0 commit comments

Comments
 (0)