|
|
|
|
@ -67,6 +67,91 @@ jobs:
|
|
|
|
|
name: cbindgen
|
|
|
|
|
path: .
|
|
|
|
|
|
|
|
|
|
almalinux-10:
|
|
|
|
|
name: AlmaLinux 10 (non-bundled libhtp)
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: almalinux:10
|
|
|
|
|
needs: [prepare-deps, prepare-cbindgen]
|
|
|
|
|
steps:
|
|
|
|
|
# Cache Rust stuff.
|
|
|
|
|
- name: Cache cargo registry
|
|
|
|
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
|
|
|
|
|
with:
|
|
|
|
|
path: ~/.cargo/registry
|
|
|
|
|
key: cargo-registry
|
|
|
|
|
|
|
|
|
|
- name: Determine number of CPUs
|
|
|
|
|
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Install system packages
|
|
|
|
|
run: |
|
|
|
|
|
dnf -y install dnf-plugins-core epel-release
|
|
|
|
|
dnf config-manager --set-enabled crb
|
|
|
|
|
dnf -y install \
|
|
|
|
|
autoconf \
|
|
|
|
|
automake \
|
|
|
|
|
cargo-vendor \
|
|
|
|
|
cbindgen \
|
|
|
|
|
diffutils \
|
|
|
|
|
numactl-devel \
|
|
|
|
|
dpdk-devel \
|
|
|
|
|
file-devel \
|
|
|
|
|
gcc \
|
|
|
|
|
gcc-c++ \
|
|
|
|
|
git \
|
|
|
|
|
hwloc \
|
|
|
|
|
hwloc-devel \
|
|
|
|
|
jansson-devel \
|
|
|
|
|
jq \
|
|
|
|
|
libtool \
|
|
|
|
|
libyaml-devel \
|
|
|
|
|
libnfnetlink-devel \
|
|
|
|
|
libnetfilter_queue-devel \
|
|
|
|
|
libnet-devel \
|
|
|
|
|
libcap-ng-devel \
|
|
|
|
|
libevent-devel \
|
|
|
|
|
libmaxminddb-devel \
|
|
|
|
|
libpcap-devel \
|
|
|
|
|
libtool \
|
|
|
|
|
lz4-devel \
|
|
|
|
|
make \
|
|
|
|
|
pcre2-devel \
|
|
|
|
|
pkgconfig \
|
|
|
|
|
python3-devel \
|
|
|
|
|
python3-sphinx \
|
|
|
|
|
python3-yaml \
|
|
|
|
|
rust-toolset \
|
|
|
|
|
sudo \
|
|
|
|
|
which \
|
|
|
|
|
zlib-devel
|
|
|
|
|
|
|
|
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
|
|
|
- run: git config --global --add safe.directory /__w/suricata/suricata
|
|
|
|
|
- uses: ./.github/actions/install-cbindgen
|
|
|
|
|
# Download and extract dependency archives created during prep
|
|
|
|
|
# job.
|
|
|
|
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
|
|
|
|
with:
|
|
|
|
|
name: prep
|
|
|
|
|
path: prep
|
|
|
|
|
- run: tar xvf prep/suricata-update.tar.gz
|
|
|
|
|
- run: tar xvf prep/suricata-verify.tar.gz
|
|
|
|
|
- run: tar xvf prep/libhtp.tar.gz
|
|
|
|
|
- name: Build and install libhtp
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
./configure --prefix=/opt/htp
|
|
|
|
|
make -j ${{ env.CPUS }}
|
|
|
|
|
make install
|
|
|
|
|
working-directory: libhtp
|
|
|
|
|
- run: rm -rf libhtp
|
|
|
|
|
- name: Configuring
|
|
|
|
|
run: |
|
|
|
|
|
./autogen.sh
|
|
|
|
|
PKG_CONFIG_PATH=/opt/htp/lib/pkgconfig CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-warnings --enable-non-bundled-htp --with-libhtp-includes=/opt/htp/include --with-libhtp-libraries=/opt/htp/lib
|
|
|
|
|
- name: Building
|
|
|
|
|
run: make -j ${{ env.CPUS }}
|
|
|
|
|
|
|
|
|
|
almalinux-9:
|
|
|
|
|
name: AlmaLinux 9
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|