summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-08-03 15:45:32 (GMT)
committerThomas Haller <thaller@redhat.com>2023-08-03 17:49:10 (GMT)
commit2f210d9ab812e77a76bf8e1450102430425d52ab (patch)
treeabfeb64c34c9e3bcacb956c22e3bcce8f15a4e70
parentdcc4c0a5934d1bfaa02c7857d6310c915b0928d6 (diff)
downloadlibnl-2f210d9ab812e77a76bf8e1450102430425d52ab.zip
libnl-2f210d9ab812e77a76bf8e1450102430425d52ab.tar.gz
libnl-2f210d9ab812e77a76bf8e1450102430425d52ab.tar.bz2
github: test build on alpine:latest for musl
-rw-r--r--.github/workflows/ci.yml64
1 files changed, 62 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7854579..930316e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -82,6 +82,7 @@ jobs:
./configure
make -j 5
shell: bash
+
- name: Build Unit Tests
run: make -j 5 check-progs
@@ -90,8 +91,8 @@ jobs:
set -x
export NLTST_SEED_RAND=
for i in `seq 1 5`; do
- tests/check-all
tests/check-direct
+ tests/check-all
make -j check
done
@@ -99,8 +100,8 @@ jobs:
run: |
set -x
export NLTST_SEED_RAND=
- 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
+ CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-all
shell: bash
- name: Install packages for Release
@@ -152,3 +153,62 @@ jobs:
make -j 5 V=1
- run: echo "🍏 This job's status is ${{ job.status }}."
+
+ ci-alpine:
+ runs-on: ubuntu-latest
+ container:
+ image: alpine:latest
+ steps:
+ - name: Install packages
+ run: |
+ apk add \
+ autoconf \
+ automake \
+ bash \
+ bison \
+ check-dev \
+ flex \
+ gcc \
+ git \
+ libtool \
+ linux-headers \
+ make \
+ musl-dev \
+ pkgconfig
+
+ - name: Check out repository code
+ uses: actions/checkout@v3
+
+ - name: Setup git
+ run: |
+ git config --global --add safe.directory "$PWD"
+
+ - name: Build
+ run: |
+ set -x
+
+ export CC="${{ matrix.cc }}"
+ 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"
+ export LDFLAGS="-Wl,--no-undefined-version,--fatal-warnings"
+ else
+ export LDFLAGS="-Wl,--no-undefined-version"
+ fi
+
+ ./autogen.sh
+ ./configure
+ make -j 5
+ make -j 5 check-progs
+
+ - name: Run Unit Tests
+ run: |
+ set -x
+ export NLTST_SEED_RAND=
+ for i in `seq 1 5`; do
+ tests/check-direct
+ # unshare() does not work (EPERM). This test currently cannot pass
+ # (odd).
+ # tests/check-all
+ # make -j check
+ done