Skip to content

Commit 207d4a0

Browse files
committed
insert a build step
1 parent e171cab commit 207d4a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
runs-on: ubuntu-24.04
3232
steps:
3333
- uses: actions/checkout@v4
34+
- name: Run build
35+
run: |
36+
mkdir build && cd build
37+
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
38+
cmake --build .
3439
- uses: cpp-linter/[email protected]
3540
id: linter
3641
continue-on-error: true
@@ -43,8 +48,7 @@ jobs:
4348
lines-changed-only: true
4449
thread-comments: true
4550
ignore: 'build|cmake_modules|ci'
46-
database: build/compile_commands.json
47-
extra-args: '-std=c++20 -Wall'
51+
database: build
4852
- name: Fail fast?!
4953
if: steps.linter.outputs.checks-failed != 0
5054
run: |

0 commit comments

Comments
 (0)