Skip to content

Commit

Permalink
Merge workflows
Browse files Browse the repository at this point in the history
Use a single workflow with a build and cppcheck job
  • Loading branch information
LegalizeAdulthood committed Feb 19, 2024
1 parent defb400 commit 664b4a9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 35 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
35 changes: 0 additions & 35 deletions .github/workflows/cppcheck.yml

This file was deleted.

0 comments on commit 664b4a9

Please sign in to comment.