Skip to content

Commit 73f628f

Browse files
committed
adding clang-tidy on modified files
1 parent d8ae91d commit 73f628f

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/build-linux.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222
- run: sudo apt update
23-
- run: sudo apt install -y apt-utils build-essential wget qt6-base-dev-tools qt6-declarative-dev qt6-multimedia-dev libqt6charts6-dev libqt6datavisualization6-dev libqt6svg6-dev libopencv-core-dev libopencv-dev libqwt-qt5-6 libqwt-qt5-dev libarmadillo-dev libgl1-mesa-dev libglu1-mesa-dev
23+
- run: sudo apt install -y apt-utils build-essential wget qt6-base-dev-tools qt6-declarative-dev qt6-multimedia-dev libqt6charts6-dev libqt6datavisualization6-dev libqt6svg6-dev libopencv-core-dev libopencv-dev libqwt-qt5-6 libqwt-qt5-dev libarmadillo-dev libgl1-mesa-dev libglu1-mesa-dev bear
2424
- run: wget -O qwt-${{env.QWT_version}}.zip https://sourceforge.net/projects/qwt/files/qwt/${{env.QWT_version}}/qwt-${{env.QWT_version}}.zip/download?use_mirror=pilotfiber
2525
- run: 7z x qwt-${{env.QWT_version}}.zip
2626
- run: cd qwt-${{env.QWT_version}} ; /usr/lib/qt6/bin/qmake
@@ -29,5 +29,18 @@ jobs:
2929
- run: /usr/lib/qt6/bin/qmake
3030
- uses: ammaraskar/gcc-problem-matcher@master
3131
- run: echo "::add-matcher::.github/matcher/uic_matcher.json"
32-
- run: make -j4
32+
33+
- name: capture compile_commands.json from build
34+
run: bear -- make -j4
3335
- run: echo "::remove-matcher owner=uic-problem-matcher::"
36+
37+
- name: Run C++ Linter (clang-tidy)
38+
if: strategy.job-index == 0 #run only for first OS of the matrix
39+
uses: cpp-linter/cpp-linter-action@v2
40+
with:
41+
style: '' # we don't want check from clang-format
42+
# TODO commented out for testing
43+
#lines-changed-only: 'diff' # check only lines changed in PR to not flood with warnings
44+
# TODO these are additional configs for testing the features. To be removed
45+
thread-comments: 'update'
46+
files-changed-only: false

0 commit comments

Comments
 (0)