Skip to content

Commit

Permalink
[Github CI] Change the way clang-tidy is checked
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Parpart <[email protected]>
  • Loading branch information
christianparpart committed Feb 3, 2025
1 parent d20a4c6 commit 87105b2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,11 @@ jobs:
sudo ./llvm.sh 20
sudo apt -qy install clang-tidy
- name: "install dependencies"
run: sudo apt install -y cmake ninja-build catch2 unixodbc-dev sqlite3 libsqlite3-dev libsqliteodbc uuid-dev
- name: Install GCC
run: sudo apt install -y g++-14
run: sudo apt install -y cmake ninja-build catch2 unixodbc-dev sqlite3 libsqlite3-dev libsqliteodbc uuid-dev gcc-14
- name: "cmake"
run: |
cmake -S . -B build -G Ninja \
-D CMAKE_CXX_COMPILER="g++-14"
- name: "build"
run: cmake --build build
- name: "run clang-tidy"
# TODO: Reenable Model directory once design is working with Clang/Clang-Tidy
run: find ./src/ -name "*.cpp" -o -name "*.h" | grep -v Model | xargs -n 1 -P $(nproc) clang-tidy -format-style=file -p build
run: cmake --preset linux-clang-debug -D ENABLE_TIDY=ON -D CLANG_TIDY_EXE="/usr/bin/clang-tidy-20"
- name: "build with clang-tidy"
run: cmake --build --preset linux-clang-debug

# }}}
# {{{ Windows
Expand Down

0 comments on commit 87105b2

Please sign in to comment.