]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: add test build without jansson
authorJason Ish <jason.ish@oisf.net>
Tue, 1 Sep 2020 21:37:54 +0000 (15:37 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 4 Sep 2020 11:13:38 +0000 (13:13 +0200)
This is to cover a test from Travis CI where we make sure
that ./configure fails if libjansson is not available.

.github/workflows/builds.yml

index 9533e88bdee5ff1a36a6dafd7611753ca495b264..f4772b1511503cda5c5007357f85c0b6b5e1d5da 100644 (file)
@@ -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