# Some convenient links: # - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md # name: CI-cygwin on: [push,pull_request] defaults: run: shell: cmd jobs: build_cygwin: strategy: matrix: os: [windows-2019] arch: [x64, x86] include: - platform: 'amd64' packages: >- gcc-g++-11.3.0-1 fail-fast: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Cygwin uses: cygwin/cygwin-install-action@master with: platform: ${{ matrix.arch }} packages: ${{ matrix.packages }} - name: Defines run: | C:\cygwin\bin\bash.exe -l -c "gcc -xc++ -dM -E - < /dev/null | egrep '(cplus|WIN32|CYGWIN|MINGW|VERSION)'" - name: Build cppcheck run: | C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 - name: Build test run: | C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 testrunner - name: Run test run: | C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 check - name: Extra test for misra run: | C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE%\addons\test ..\..\cppcheck --dump -DDUMMY --suppress=uninitvar --inline-suppr misra\misra-test.c --std=c89 --platform=unix64 && python3 ..\misra.py -verify misra\misra-test.c.dump C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% .\cppcheck --addon=misra --inline-suppr --enable=information --error-exitcode=1 addons\test\misra\misra-ctu-*-test.c