Create compilation database correctly
This commit is contained in:
parent
b8d7f005fc
commit
bf0d90c76a
1 changed files with 2 additions and 1 deletions
3
.github/workflows/clang-tidy.yml
vendored
3
.github/workflows/clang-tidy.yml
vendored
|
@ -38,7 +38,8 @@ jobs:
|
||||||
run: sudo apt-get install clang-tidy
|
run: sudo apt-get install clang-tidy
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
run: cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
|
||||||
|
|
||||||
- name: Run clang-tidy
|
- name: Run clang-tidy
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
|
Loading…
Reference in a new issue