diff options
author | Thomas Haller <thaller@redhat.com> | 2022-04-15 15:23:08 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-04-15 15:32:59 (GMT) |
commit | 39e4d8dc123db149db329f352af1154af7b46852 (patch) | |
tree | df83295b187bd9fc7d193984dd5e17ef24051000 /.github | |
parent | d63e47338b1a2790fbe6569ee8560e8187a2d44b (diff) | |
download | libnl-39e4d8dc123db149db329f352af1154af7b46852.zip libnl-39e4d8dc123db149db329f352af1154af7b46852.tar.gz libnl-39e4d8dc123db149db329f352af1154af7b46852.tar.bz2 |
github: test out-of-tree build and "--disable-static"
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2933b0..3f5eeb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: - cc: clang runs-on: ubuntu-latest steps: + - name: Install packages run: | sudo apt-get update @@ -20,18 +21,19 @@ jobs: check \ valgrind \ libtool-bin + - name: Check out repository code uses: actions/checkout@v2 + - name: Build run: | set -x export CC="${{ matrix.cc }}" - CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11" + export CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11" if [ "$CC" = "clang" ]; then CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" fi - export CFLAGS ./autogen.sh ./configure @@ -39,14 +41,17 @@ jobs: shell: bash - name: Build Unit Tests run: make -j 5 check-progs + - name: Run Unit Tests run: make -j 5 check + - name: Run Unit Tests w/Valgrind run: | set -x CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-all CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-direct shell: bash + - name: Install packages for Release run: | test "${{ matrix.cc }}" == gcc || exit 0 @@ -57,10 +62,32 @@ jobs: mscgen \ source-highlight \ python3-pygments + - name: Build Release run: | test "${{ matrix.cc }}" == gcc || exit 0 set -x git clean -fdx NO_GPG_SIGN=1 ./tools/build_release.sh BuildAll + + - name: Build out-of-tree and disable-static + run: | + set -x + + git clean -fdx + + export CC="${{ matrix.cc }}" + export CFLAGS="-Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11" + if [ "$CC" = "clang" ]; then + CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" + fi + + ./autogen.sh + mkdir build + cd build + ../configure --disable-static + make -j 5 + make -j 5 check-progs + make -j 5 check + - run: echo "🍏 This job's status is ${{ job.status }}." |