1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-14 17:32:55 -04:00

Main: test different conditions in CI

This commit is contained in:
Alex Kotov 2022-06-07 21:13:56 +03:00
parent 6525dc1125
commit d066a9d231
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -33,6 +33,29 @@ jobs:
- name: install
run: sudo make install
cond:
runs-on: ubuntu-latest
strategy:
matrix:
pkg:
- main: 'all'
- main: 'file'
- main: 'ntoa'
other: '--without-printf --without-units'
- main: 'printf'
steps:
- uses: actions/checkout@v2
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --without-${{matrix.pkg.main}} ${{matrix.pkg.other}} --enable-tests --enable-tests-python
- name: make
run: make
- name: check
run: make check || (cat test-suite.log && false)
- name: install
run: sudo make install
dist:
runs-on: ubuntu-latest
steps:
@ -71,18 +94,3 @@ jobs:
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/
cond:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --without-all --enable-tests --enable-tests-python
- name: make
run: make
- name: check
run: make check || (cat test-suite.log && false)
- name: install
run: sudo make install