1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-24 15:55:41 -05:00

Test library conditional compilation

This commit is contained in:
Alex Kotov 2022-02-01 12:01:27 +05:00 committed by GitHub
parent 04f7b2938b
commit 13bc3d166a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,13 +17,6 @@ jobs:
opt: ['', '-O0', '-O3']
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: dependencies
run: sudo apt-get --yes install clang tcc
- name: autogen
@ -50,3 +43,18 @@ 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 --enable-tests --without-all CFLAGS='-fPIC'
- name: make
run: make
- name: check
run: make check || (cat test-suite.log && false)
- name: install
run: sudo make install