mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[ci] clang-tidy: Generate compilation commands DB with Gradle (#3585)
This commit is contained in:
6
.github/workflows/lint-format.yml
vendored
6
.github/workflows/lint-format.yml
vendored
@@ -63,14 +63,12 @@ jobs:
|
||||
sudo apt-get install -y clang-tidy-12 clang-format-12
|
||||
- name: Install wpiformat
|
||||
run: pip3 install wpiformat
|
||||
- name: Install jinja
|
||||
run: python -m pip install jinja2
|
||||
- name: Create compile_commands.json
|
||||
run: mkdir build-cmake && cd build-cmake && cmake -DWITH_OLD_COMMANDS=ON -DWITH_EXAMPLES=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ..
|
||||
run: ./gradlew generateCompileCommands -Ptoolchain-optional-roboRio
|
||||
- name: List changed files
|
||||
run: wpiformat -list-changed-files
|
||||
- name: Run clang-tidy
|
||||
run: wpiformat -clang 12 -no-format -tidy-changed -compile-commands=build-cmake
|
||||
run: wpiformat -clang 12 -no-format -tidy-changed -compile-commands=build/compile_commands/linuxx86-64 -vv
|
||||
spotless:
|
||||
name: "Spotless"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user