2021-04-10 14:30:02 +02:00
|
|
|
# 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]
|
2021-04-10 14:30:02 +02:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: cmd
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_cygwin:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-2019]
|
|
|
|
arch: [x64, x86]
|
2022-07-07 23:44:09 +02:00
|
|
|
packages: >-
|
2022-07-07 23:41:56 +02:00
|
|
|
moreutils
|
2022-02-16 07:06:04 +01:00
|
|
|
fail-fast: false
|
2021-04-10 14:30:02 +02:00
|
|
|
|
|
|
|
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
|
2021-04-10 14:30:02 +02:00
|
|
|
with:
|
2022-07-07 20:15:01 +02:00
|
|
|
platform: ${{ matrix.arch }}
|
2022-07-07 22:48:04 +02:00
|
|
|
packages: ${{ matrix.packages }}
|
2021-04-10 14:30:02 +02:00
|
|
|
|
2022-07-07 22:14:01 +02:00
|
|
|
- name: Defines
|
|
|
|
run: |
|
|
|
|
C:\cygwin\bin\bash.exe -l -c "gcc -xc++ -dM -E - < /dev/null | egrep '(cplus|WIN32|CYGWIN|MINGW|VERSION)'"
|
|
|
|
|
2021-04-10 14:30:02 +02:00
|
|
|
- name: Build cppcheck
|
|
|
|
run: |
|
2022-07-07 20:45:31 +02:00
|
|
|
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2
|
2021-04-10 14:30:02 +02:00
|
|
|
|
|
|
|
- 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
|
2021-04-10 14:30:02 +02:00
|
|
|
|
|
|
|
- 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
|
2021-07-22 08:46:28 +02:00
|
|
|
..\..\cppcheck --dump -DDUMMY --suppress=uninitvar --inline-suppr misra\misra-test.c --std=c89 --platform=unix64 && python3 ..\misra.py -verify misra\misra-test.c.dump
|
2022-07-07 20:45:31 +02:00
|
|
|
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE%
|
2021-07-17 22:36:03 +02:00
|
|
|
.\cppcheck --addon=misra --inline-suppr --enable=information --error-exitcode=1 addons\test\misra\misra-ctu-*-test.c
|
2021-07-11 17:23:33 +02:00
|
|
|
|