aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2023-05-25 10:04:37 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-05-28 00:46:58 +0200
commitd0c070a800c7577e6d437812f0d3bd976ddc475e (patch)
tree34bf1771a7ab5de4c6e2868c1d70242ce189de9b /.github
parent8a936a507271b727f7b0907a20fbddbe85bb725e (diff)
Added CentOs and ArchLinux to the CI.
* added some additional checks in get-and-build-libndpi.sh * CMake fallback library checks Signed-off-by: lns <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-archlinux.yml31
-rw-r--r--.github/workflows/build-centos.yml51
2 files changed, 82 insertions, 0 deletions
diff --git a/.github/workflows/build-archlinux.yml b/.github/workflows/build-archlinux.yml
new file mode 100644
index 000000000..ea018746e
--- /dev/null
+++ b/.github/workflows/build-archlinux.yml
@@ -0,0 +1,31 @@
+name: ArchLinux PKGBUILD
+
+on:
+ push:
+ branches:
+ - main
+ - tmp
+ pull_request:
+ branches:
+ - main
+ types: [opened, synchronize, reopened]
+ release:
+ types: [created]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: false
+ fetch-depth: 1
+ - name: Prepare for ArchLinux packaging
+ run: |
+ sudo chmod -R 0777 .
+ mv -v packages/archlinux packages/ndpid-testing
+ - uses: 2m/arch-pkgbuild-builder@v1.16
+ with:
+ debug: true
+ target: 'pkgbuild'
+ pkgname: 'packages/ndpid-testing'
diff --git a/.github/workflows/build-centos.yml b/.github/workflows/build-centos.yml
new file mode 100644
index 000000000..1823e26be
--- /dev/null
+++ b/.github/workflows/build-centos.yml
@@ -0,0 +1,51 @@
+name: CentOs
+
+on:
+ push:
+ branches:
+ - main
+ - tmp
+ pull_request:
+ branches:
+ - main
+ types: [opened, synchronize, reopened]
+ release:
+ types: [created]
+
+jobs:
+ centos8:
+ runs-on: ubuntu-latest
+ container: 'centos:8'
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: false
+ fetch-depth: 1
+ - name: Install CentOs Prerequisites
+ run: |
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
+ yum -y update
+ yum -y install curl gpg
+ curl 'https://packages.ntop.org/centos-stable/ntop.repo' > /etc/yum.repos.d/ntop.repo
+ curl 'https://packages.ntop.org/centos-stable/RPM-GPG-KEY-deri' | gpg --import
+ yum -y install yum-utils dnf-plugins-core epel-release
+ dnf config-manager --set-enabled powertools
+ yum -y update
+ yum -y install gcc gcc-c++ autoconf automake make cmake flex bison gettext pkg-config libtool ndpi-dev libpcap-devel zlib-devel python3.8 git wget unzip /usr/lib64/libasan.so.5.0.0 /usr/lib64/libubsan.so.1.0.0
+ repoquery -l ndpi-dev
+ - name: Configure nDPId
+ run: |
+ mkdir build && cd build
+ cmake .. -DENABLE_SYSTEMD=ON -DBUILD_EXAMPLES=ON -DENABLE_SANITIZER=ON -DNDPI_NO_PKGCONFIG=ON -DSTATIC_LIBNDPI_INSTALLDIR=/usr
+ - name: Build nDPId
+ run: |
+ make -C build all VERBOSE=1
+ - name: Upload on Failure
+ uses: actions/upload-artifact@v3
+ if: failure()
+ with:
+ name: autoconf-config-log
+ path: |
+ build/CMakeCache.txt
+ libnDPI/config.log