|
|
|
@ -1246,6 +1246,62 @@ jobs:
|
|
|
|
|
else
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
almalinux-9-minimal-recommended-dependecies:
|
|
|
|
|
name: AlmaLinux 9 (Minimal/Recommended Build)
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: almalinux:9
|
|
|
|
|
needs: [prepare-deps]
|
|
|
|
|
steps:
|
|
|
|
|
# Cache Rust stuff.
|
|
|
|
|
- name: Cache cargo registry
|
|
|
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
|
|
|
|
|
with:
|
|
|
|
|
path: ~/.cargo
|
|
|
|
|
key: ${{ github.job }}-cargo
|
|
|
|
|
|
|
|
|
|
- name: Cache RPMs
|
|
|
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
|
|
|
|
|
with:
|
|
|
|
|
path: /var/cache/dnf
|
|
|
|
|
key: ${{ github.job }}-dnf
|
|
|
|
|
- run: echo "keepcache=1" >> /etc/dnf/dnf.conf
|
|
|
|
|
|
|
|
|
|
- name: Determine number of CPUs
|
|
|
|
|
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Install git dependencies
|
|
|
|
|
run: |
|
|
|
|
|
dnf -y install \
|
|
|
|
|
sudo \
|
|
|
|
|
git \
|
|
|
|
|
libtool \
|
|
|
|
|
which
|
|
|
|
|
|
|
|
|
|
- name: Install Almalinux 9 extra repositories
|
|
|
|
|
run : |
|
|
|
|
|
dnf -y update
|
|
|
|
|
dnf -y install dnf-plugins-core epel-release
|
|
|
|
|
dnf config-manager --set-enabled crb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
|
|
|
- run: git config --global --add safe.directory /__w/suricata/suricata
|
|
|
|
|
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
|
|
|
|
|
|
|
|
|
|
- name: Install minimal dependencies
|
|
|
|
|
run: ./scripts/docs-almalinux9-minimal-build.sh
|
|
|
|
|
|
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
|
|
|
- run: git config --global --add safe.directory /__w/suricata/suricata
|
|
|
|
|
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e
|
|
|
|
|
with:
|
|
|
|
|
name: prep
|
|
|
|
|
path: prep
|
|
|
|
|
- run: tar xf prep/libhtp.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: ./src/suricata --build-info # check if we can run Suricata
|
|
|
|
|
|
|
|
|
|
ubuntu-24-04:
|
|
|
|
|
name: Ubuntu 24.04 (cocci)
|
|
|
|
@ -2420,6 +2476,46 @@ jobs:
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: ./src/suricata --build-info | grep -E "Netmap support:\s+yes"
|
|
|
|
|
|
|
|
|
|
ubuntu-22-04-minimal-recommended-build:
|
|
|
|
|
name: Ubuntu 22.04 (Minimal/Recommended Build)
|
|
|
|
|
needs: [prepare-deps, prepare-cbindgen]
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
steps:
|
|
|
|
|
# Cache Rust stuff.
|
|
|
|
|
- name: Cache cargo registry
|
|
|
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
|
|
|
|
|
with:
|
|
|
|
|
path: ~/.cargo/registry
|
|
|
|
|
key: cargo-registry
|
|
|
|
|
|
|
|
|
|
- name: Determine number of CPUs
|
|
|
|
|
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Install git dependencies
|
|
|
|
|
run: |
|
|
|
|
|
sudo apt update
|
|
|
|
|
sudo apt -y install \
|
|
|
|
|
git \
|
|
|
|
|
libtool
|
|
|
|
|
|
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
|
|
|
- run: git config --global --add safe.directory /__w/suricata/suricata
|
|
|
|
|
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
|
|
|
|
|
with:
|
|
|
|
|
name: prep
|
|
|
|
|
path: prep
|
|
|
|
|
- run: tar xf prep/libhtp.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-update.tar.gz
|
|
|
|
|
- run: tar xf prep/suricata-verify.tar.gz
|
|
|
|
|
- run: ./autogen.sh
|
|
|
|
|
|
|
|
|
|
- name: Install minimal dependencies
|
|
|
|
|
run: ./scripts/docs-ubuntu-debian-minimal-build.sh
|
|
|
|
|
|
|
|
|
|
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
|
|
|
|
|
- run: make -j ${{ env.CPUS }}
|
|
|
|
|
- run: ./src/suricata --build-info # check if we can run Suricata
|
|
|
|
|
|
|
|
|
|
ubuntu-22-04-dpdk-build:
|
|
|
|
|
name: Ubuntu 22.04 (DPDK Build)
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|