cppcheck/.github/workflows/CI-cygwin.yml

56 lines
1.7 KiB
YAML
Raw Normal View History

# Some convenient links:
# - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
#
name: CI-cygwin
2022-07-07 18:08:03 +02:00
on: [push,pull_request]
defaults:
run:
shell: cmd
jobs:
build_cygwin:
strategy:
matrix:
os: [windows-2019]
arch: [x64, x86]
2022-07-07 23:46:14 +02:00
include:
2022-07-08 00:06:02 +02:00
- platform: 'x86_64'
2022-07-08 00:32:24 +02:00
packages: |
2022-07-08 00:12:55 +02:00
gcc-g++
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Cygwin
2022-07-07 20:15:01 +02:00
uses: cygwin/cygwin-install-action@master
with:
2022-07-07 20:15:01 +02:00
platform: ${{ matrix.arch }}
2022-07-07 22:48:04 +02:00
packages: ${{ matrix.packages }}
- name: Build cppcheck
run: |
2022-07-07 20:45:31 +02:00
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2
- name: Build test
run: |
2022-07-07 20:45:31 +02:00
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 testrunner
- name: Run test
run: |
2022-07-07 20:45:31 +02:00
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 check
2021-07-11 17:23:33 +02:00
- name: Extra test for misra
run: |
2022-07-07 20:45:31 +02:00
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE%\addons\test
2022-07-08 02:06:21 +02:00
dir ..\..\cppcheck\cppcheck
2022-07-08 11:10:14 +02:00
..\..\cppcheck\cppcheck\cppcheck.exe --dump -DDUMMY --suppress=uninitvar --inline-suppr ..\..\cppcheck\cppcheck\misra\misra-test.c --std=c89 --platform=unix64 && python3 ..\..\cppcheck\cppcheck\addons\misra.py -verify ..\..\cppcheck\cppcheck\misra\misra-test.c.dump
2022-07-07 20:45:31 +02:00
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE%
2022-07-08 11:10:14 +02:00
.\cppcheck\cppcheck\cppcheck.exe --addon=misra --inline-suppr --enable=information --error-exitcode=1 .\cppcheck\cppcheck\addons\test\misra\misra-ctu-*-test.c
2021-07-11 17:23:33 +02:00