Improve CI config

This commit is contained in:
Alex Kotov 2021-12-18 01:26:29 +05:00
parent 4ffef19e43
commit ac31273c8d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 10 additions and 3 deletions

View File

@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt install clang cppcheck tcc
run: sudo apt install clang tcc
- name: autogen
run: ./autogen.sh
- name: configure
@ -32,11 +32,18 @@ jobs:
run: make
- name: check
run: make check || cat test-suite.log
- name: install
run: sudo make install
cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt install cppcheck
- name: cppcheck source code
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability include/ src/
- name: cppcheck examples
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=duplicateExpression --suppress=staticStringCompare examples/
- name: cppcheck tests
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=unusedStructMember tests/
- name: install
run: sudo make install