Skip to content

Commit

Permalink
github-ci: add test build without jansson
Browse files Browse the repository at this point in the history
This is to cover a test from Travis CI where we make sure
that ./configure fails if libjansson is not available.
  • Loading branch information
jasonish authored and victorjulien committed Sep 4, 2020
1 parent cb963f8 commit 280ab65
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 280ab65

Please sign in to comment.