forked from danmar/cppcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chr_Fix11842' of https://github.com/chrchr-github/cppcheck
- Loading branch information
Showing
22 changed files
with
2,019 additions
and
54 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,51 @@ | ||
# Some convenient links: | ||
# - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md | ||
# | ||
|
||
name: CI-cygwin | ||
|
||
on: [push,pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
defaults: | ||
run: | ||
shell: cmd | ||
|
||
jobs: | ||
build_cygwin: | ||
strategy: | ||
matrix: | ||
os: [windows-2022] | ||
arch: [x64] | ||
include: | ||
- platform: 'x86_64' | ||
packages: | | ||
gcc-g++ | ||
python3 | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Cygwin | ||
uses: cygwin/cygwin-install-action@master | ||
with: | ||
platform: ${{ matrix.arch }} | ||
packages: ${{ matrix.packages }} | ||
|
||
# Cygwin will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries. | ||
- name: Build all and run test | ||
run: | | ||
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j2 check | ||
- name: Extra test for misra | ||
run: | | ||
cd %GITHUB_WORKSPACE%\addons\test | ||
..\..\cppcheck.exe --dump -DDUMMY --suppress=uninitvar --inline-suppr misra\misra-test.c --std=c89 --platform=unix64 | ||
python3 ..\misra.py -verify misra\misra-test.c.dump | ||
..\..\cppcheck.exe --addon=misra --enable=style --inline-suppr --enable=information --error-exitcode=1 misra\misra-ctu-1-test.c misra\misra-ctu-2-test.c | ||
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,37 @@ | ||
# Some convenient links: | ||
# - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md | ||
# | ||
|
||
name: CI-mingw | ||
|
||
on: [push,pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
defaults: | ||
run: | ||
shell: cmd | ||
|
||
jobs: | ||
build_mingw: | ||
strategy: | ||
matrix: | ||
os: [windows-2019] # fails to download with "windows-2022" | ||
arch: [x64] # TODO: fix x86 build? | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up MinGW | ||
uses: egor-tensin/setup-mingw@v2 | ||
with: | ||
platform: ${{ matrix.arch }} | ||
|
||
# MinGW will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries. | ||
- name: Build all and run test | ||
run: | | ||
mingw32-make VERBOSE=1 -j2 check |
Oops, something went wrong.