-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Cppcheck workflow, presets, and build steps [skip ci]
- Added a new file `.github/workflows/cppcheck.yml` to include a Cppcheck workflow. - Modified `.travis.yml` to comment out the CppCheck job. - Modified `CMakePresets.json` to add a new preset for cppcheck. - Updated badges in `README.md`. This commit adds support for running Cppcheck as part of the CI/CD pipeline.
- Loading branch information
1 parent
8ef7e8b
commit de41ab3
Showing
4 changed files
with
65 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Cppcheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Setup | ||
run: | | ||
sudo apt update | ||
sudo apt-get install build-essential automake autoconf autoconf-archive texinfo libtool-bin yasm ninja-build ccache cppcheck | ||
- name: Setup GCC | ||
uses: pkgxdev/setup@v1 | ||
with: | ||
+: gcc@13 | ||
|
||
- run: gcc --version | ||
|
||
- name: Restore artifacts or setup vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: ${{ vars.VCPKG_GIT_COMMIT_ID }} | ||
|
||
- name: Configure | ||
run: cmake --preset=cppcheck | ||
|
||
- name: Build | ||
run: cmake --build build -j 2 |
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
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