mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-29 07:29:39 +00:00
Initial work to support out-of-tree builds ``` ./autogen.sh mkdir build cd build ../configure make make check ``` IMPORTANT: `autogen.sh` doesn't call `configure` automatically anymore!! You have to do: `./autogen.sh && ./configure --$OPTIONS`. A little bit annoying but the pattern `autogen && configure && make` is very common on Linux. Known issues: * `make doc` doesn't work in out-of-tree builds, yet * Windows/MinGW/DPDK (out-of-tree) builds have not been tested, so it is unlikely they work See: #2992
38 lines
959 B
YAML
38 lines
959 B
YAML
name: RPM Build
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# At the end of every day
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build / RPM (Alma Linux)
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: almalinux:8
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Alma Linux Prerequisites
|
|
run: |
|
|
dnf -y --enablerepo=powertools install libpcap-devel
|
|
yum install -y autoconf automake make rpm-build libtool pkg-config gettext json-c-devel flex bison
|
|
|
|
- name: Configure nDPI
|
|
run: |
|
|
# symlink source directory for ndpi.spec
|
|
ln -sr . $HOME/nDPI
|
|
./autogen.sh && ./configure
|
|
cd packages/rpm
|
|
./configure
|
|
|
|
- name: Build RPM package
|
|
run: |
|
|
make -C packages/rpm package
|
|
|
|
- name: Test RPM package
|
|
run: |
|
|
yum install -y ${HOME}/rpmbuild/RPMS/x86_64/*.rpm
|
|
ndpiReader -i ./tests/pcap/quic-v2.pcapng
|
|
test -d /usr/include/ndpi
|