summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-03 22:33:44 (GMT)
committerThomas Haller <thaller@redhat.com>2022-03-03 23:09:34 (GMT)
commit92c92379fee08bfc6c68636b8a5ed54790fa3c42 (patch)
tree84cf9434df35402a3690c812deb969b3cd870a27 /.github
parent3d1fb006c85922907702c17909be5b2226bbe45c (diff)
downloadlibnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.zip
libnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.tar.gz
libnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.tar.bz2
ci: add github-actions
and drop the defunct travis.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..2bb7744
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: libnl3-ci
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ ci:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install packages
+ run: sudo apt-get -y install check
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ - name: Build and Test
+ run: |
+ CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla"
+ if [ "$CC" = "clang" ]; then
+ CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
+ fi
+ export CFLAGS
+ ./autogen.sh
+ ./configure
+ make -j 5
+ make -j 5 check
+ shell: bash
+ - run: echo "🍏 This job's status is ${{ job.status }}."