From d066a9d231b43600c11cc2ebfb778423bb954d3b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 7 Jun 2022 21:13:56 +0300 Subject: [PATCH] Main: test different conditions in CI --- .github/workflows/main.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ba70e3..618fddc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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