-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This simplifies the analysis workflow, and makes it easier to (re-)produce reports locally.
- Loading branch information
1 parent
1f113db
commit 8ce3f54
Showing
3 changed files
with
22 additions
and
4 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 |
---|---|---|
|
@@ -68,15 +68,13 @@ jobs: | |
run: ln -s meson.options meson_options.txt | ||
- name: meson setup | ||
run: meson setup -Dpdf-doc=false build | ||
- name: meson compile | ||
run: meson compile -C build/ | ||
- name: cppcheck | ||
run: | | ||
cppcheck --project=build/compile_commands.json -DAF_UNIX=1 --enable=warning,style,unusedFunction --xml 2>cppcheck.xml | ||
ninja -C build/ cppcheck-xml | ||
- uses: airtower-luna/[email protected] | ||
with: | ||
tool: 'CppCheck' | ||
input_file: 'cppcheck.xml' | ||
input_file: 'build/cppcheck.xml' | ||
sarif_file: 'cppcheck.sarif' | ||
- name: define CONTAINER_WORKSPACE | ||
run: | | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# run cppcheck using the project config created by Meson, write output | ||
# to build dir | ||
CPPCHECK_DIR="${MESON_BUILD_ROOT}/cppcheck" | ||
mkdir -p "${CPPCHECK_DIR}" | ||
cppcheck --project="${MESON_BUILD_ROOT}/compile_commands.json" \ | ||
--cppcheck-build-dir="${CPPCHECK_DIR}" \ | ||
-DAF_UNIX=1 \ | ||
--enable=warning,style \ | ||
--check-level=exhaustive \ | ||
"$@" |