1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00

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

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