From 975b58c05022092e1cfca8da25d125621b10c2ea Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 19 Aug 2020 09:28:07 -0600 Subject: [PATCH] github-ci: Ubuntu 20.4 build with -NDEBUG To cover Travis-CI test that builds with -NDEBUG. Redmine issue: https://redmine.openinfosecfoundation.org/issues/3869 --- .github/workflows/builds.yml | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 8d9d9c10a9..4573027ec3 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -505,6 +505,69 @@ jobs: - name: Running suricata-verify run: python3 ./suricata-verify/run.py + ubuntu-20-04-ndebug: + name: Ubuntu 20.04 (-DNDEBUG) + runs-on: ubuntu-latest + container: ubuntu:20.04 + needs: prep + steps: + + - name: Install dependencies + run: | + apt update + apt -y install \ + build-essential \ + autoconf \ + automake \ + git \ + jq \ + libtool \ + libpcap-dev \ + libnet1-dev \ + libyaml-0-2 \ + libyaml-dev \ + libcap-ng-dev \ + libcap-ng0 \ + libmagic-dev \ + libnetfilter-queue-dev \ + libnetfilter-queue1 \ + libnfnetlink-dev \ + libnfnetlink0 \ + libhiredis-dev \ + libjansson-dev \ + libevent-dev \ + libevent-pthreads-2.1-7 \ + libjansson-dev \ + libpython2.7 \ + libpcre3 \ + libpcre3-dev \ + make \ + parallel \ + python3-yaml \ + rustc \ + software-properties-common \ + zlib1g \ + zlib1g-dev \ + exuberant-ctags + - name: Install cbindgen + run: cargo install --force --debug --version 0.14.1 cbindgen + - run: echo "::add-path::$HOME/.cargo/bin" + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v2 + with: + name: prep + path: prep + - run: tar xf prep/libhtp.tar.gz + - run: ./autogen.sh + - run: CFLAGS="$DEFAULT_CFLAGS -DNDEBUG" ./configure --enable-unittests + - run: make -j2 + - run: make check + - run: make dist + - name: Extracting suricata-verify + run: tar xf prep/suricata-verify.tar.gz + - name: Running suricata-verify + run: python3 ./suricata-verify/run.py + ubuntu-18-04-debug-validation: name: Ubuntu 18.04 (Debug Validation) runs-on: ubuntu-18.04 -- 2.47.2