From: Jason Ish Date: Tue, 1 Sep 2020 21:37:54 +0000 (-0600) Subject: github-ci: add test build without jansson X-Git-Tag: suricata-6.0.0-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280ab657055e4c46b2969cce5940f1237959776d;p=thirdparty%2Fsuricata.git github-ci: add test build without jansson This is to cover a test from Travis CI where we make sure that ./configure fails if libjansson is not available. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 9533e88bde..f4772b1511 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -371,6 +371,73 @@ jobs: - name: Running suricata-verify run: python3 ./suricata-verify/run.py + fedora-32-no-jansson: + name: Fedora 32 (no jansson) + runs-on: ubuntu-latest + container: fedora:32 + needs: prep + steps: + + # Cache Rust stuff. + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: cargo-registry + + - run: | + dnf -y install \ + autoconf \ + automake \ + cargo \ + ccache \ + clang \ + diffutils \ + file-devel \ + gcc \ + gcc-c++ \ + git \ + lua-devel \ + libasan \ + libtool \ + libyaml-devel \ + libnfnetlink-devel \ + libnetfilter_queue-devel \ + libnet-devel \ + libcap-ng-devel \ + libevent-devel \ + libmaxminddb-devel \ + libpcap-devel \ + libtool \ + lz4-devel \ + make \ + nspr-devel \ + nss-devel \ + nss-softokn-devel \ + pcre-devel \ + pkgconfig \ + python3-yaml \ + sudo \ + which \ + zlib-devel + - run: | + cargo install --debug cbindgen + 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: | + if ./configure; then + echo "error: configure should have failed" + exit 1 + else + exit 0 + fi + fedora-31: name: Fedora 31 runs-on: ubuntu-latest