-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a single workflow with a build and cppcheck job
- Loading branch information
1 parent
defb400
commit 664b4a9
Showing
2 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,35 @@ jobs: | |
- name: CMake workflow | ||
run: cmake --workflow --preset default | ||
|
||
cppcheck: | ||
name: cppcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure Compilation Database | ||
run: cmake --preset cppcheck | ||
|
||
- name: Run CppCheck | ||
uses: deep5050/[email protected] | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
enable: 'style' | ||
force: 'enable' | ||
other_options: >- | ||
--suppress=commaSeparatedReturn | ||
--suppress=cstyleCast | ||
--suppress=functionStatic | ||
--suppress=incorrectStringBooleanError | ||
--suppress=invalidPointerCast | ||
--suppress=invalidscanf | ||
--suppress=variableHidingEnum | ||
--suppress=variableScope | ||
--inline-suppr | ||
-I headers hc common headers unix win32 | ||
-ifractint | ||
- name: Print Report | ||
run: cmake -E cat cppcheck_report.txt |
This file was deleted.
Oops, something went wrong.