diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-03 22:33:44 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-03 23:09:34 (GMT) |
commit | 92c92379fee08bfc6c68636b8a5ed54790fa3c42 (patch) | |
tree | 84cf9434df35402a3690c812deb969b3cd870a27 | |
parent | 3d1fb006c85922907702c17909be5b2226bbe45c (diff) | |
download | libnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.zip libnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.tar.gz libnl-92c92379fee08bfc6c68636b8a5ed54790fa3c42.tar.bz2 |
ci: add github-actions
and drop the defunct travis.
-rw-r--r-- | .github/workflows/ci.yml | 27 | ||||
-rw-r--r-- | .travis.yml | 13 | ||||
-rwxr-xr-x | .travis/run.sh | 17 |
3 files changed, 27 insertions, 30 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 }}." diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 682162f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: c -compiler: - - gcc - - clang - -addons: - apt: - packages: - - check - -before_install: - -script: ./.travis/run.sh diff --git a/.travis/run.sh b/.travis/run.sh deleted file mode 100755 index afa1702..0000000 --- a/.travis/run.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -set -e - -CFLAGS="-Werror -Wall -Wdeclaration-after-statement -Wvla" - -if [ "$CC" = "clang" ]; then - CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" -fi - -CFLAGS="$CFLAGS -DNL_MORE_ASSERTS=1000" - -export CFLAGS -./autogen.sh -./configure -make -j 5 -make -j 5 check |