From 4972021cd4c362c6f02fce6c34377013a463eab0 Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Fri, 20 Aug 2021 21:27:51 +0200 Subject: [PATCH] dpdk: add DPDK test support in Github CI Add DPDK dependency to the build process in distributions with a native support of DPDK in their default package managers. --- .github/workflows/builds.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 158c47f347..240c5be5be 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -188,6 +188,8 @@ jobs: automake \ cargo-vendor \ diffutils \ + numactl-devel \ + dpdk-devel \ file-devel \ gcc \ gcc-c++ \ @@ -236,7 +238,7 @@ jobs: CFLAGS="${DEFAULT_CFLAGS}" ./configure - run: make -j2 distcheck env: - DISTCHECK_CONFIGURE_FLAGS: "--enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks" + DISTCHECK_CONFIGURE_FLAGS: "--enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks --enable-dpdk" - run: test -e doc/userguide/suricata.1 - name: Building Rust documentation run: make doc @@ -661,6 +663,7 @@ jobs: libnetfilter-queue1 \ libnfnetlink-dev \ libnfnetlink0 \ + libnuma-dev \ libhiredis-dev \ liblua5.1-dev \ libjansson-dev \ @@ -676,7 +679,8 @@ jobs: zlib1g \ zlib1g-dev \ exuberant-ctags \ - curl + curl \ + dpdk-dev - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 with: @@ -736,6 +740,7 @@ jobs: libnetfilter-queue1 \ libnfnetlink-dev \ libnfnetlink0 \ + libnuma-dev \ libhiredis-dev \ liblua5.1-dev \ libjansson-dev \ @@ -751,7 +756,8 @@ jobs: zlib1g \ zlib1g-dev \ exuberant-ctags \ - curl + curl \ + dpdk-dev - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 with: @@ -811,6 +817,7 @@ jobs: libnetfilter-queue1 \ libnfnetlink-dev \ libnfnetlink0 \ + libnuma-dev \ libhiredis-dev \ liblua5.1-dev \ libjansson-dev \ @@ -829,7 +836,8 @@ jobs: unzip \ curl \ time \ - wget + wget \ + dpdk-dev - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 with: @@ -883,6 +891,7 @@ jobs: libnetfilter-queue1 \ libnfnetlink-dev \ libnfnetlink0 \ + libnuma-dev \ libhiredis-dev \ libjansson-dev \ libevent-dev \ @@ -897,7 +906,8 @@ jobs: software-properties-common \ zlib1g \ zlib1g-dev \ - exuberant-ctags + exuberant-ctags \ + dpdk-dev - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 with: @@ -957,6 +967,7 @@ jobs: libnetfilter-queue1 \ libnfnetlink-dev \ libnfnetlink0 \ + libnuma-dev \ libhiredis-dev \ libjansson-dev \ libevent-dev \ @@ -969,6 +980,7 @@ jobs: software-properties-common \ zlib1g \ zlib1g-dev \ + dpdk-dev - run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.33.0 -y - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Download suricata.tar.gz -- 2.47.2