From: Jason Ish Date: Fri, 17 Sep 2021 22:24:03 +0000 (-0600) Subject: ci: add almalinux build to test on RHEL-like systems X-Git-Tag: suricata-6.0.4~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b17ed985df5ea1566fc74e533cef5f3447316a9d;p=thirdparty%2Fsuricata-verify.git ci: add almalinux build to test on RHEL-like systems The test is done on Ubuntu, but there are some variations between RHEL-like and Ubuntu that we should catch. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 807d70476..4e3bcdd18 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -80,3 +80,69 @@ jobs: - name: Running suricata-verify working-directory: suricata run: python3 ../run.py + + almalinux: + name: almalinux + runs-on: ubuntu-latest + container: almalinux:latest + strategy: + fail-fast: false + matrix: + branch: + - master + - master-5.0.x + - master-6.0.x + steps: + - name: Install dependencies + run: | + yum -y install dnf-plugins-core + yum config-manager --set-enabled powertools + yum -y install \ + autoconf \ + automake \ + cargo-vendor \ + diffutils \ + file-devel \ + gcc \ + gcc-c++ \ + git \ + jansson-devel \ + jq \ + lua-devel \ + libtool \ + libyaml-devel \ + libnfnetlink-devel \ + libnetfilter_queue-devel \ + libnet-devel \ + libcap-ng-devel \ + libevent-devel \ + libmaxminddb-devel \ + libpcap-devel \ + libtool \ + lz4-devel \ + make \ + nss-devel \ + pcre-devel \ + pkgconfig \ + python3-devel \ + python3-sphinx \ + python3-yaml \ + rust-toolset \ + sudo \ + which \ + zlib-devel + - run: cargo install --force --debug cbindgen + - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - uses: actions/checkout@v2 + - run: python3 ./run.py --self-test + - run: git clone https://github.com/OISF/suricata -b ${{ matrix.branch }} + - run: git clone https://github.com/OISF/libhtp suricata/libhtp + - name: Build Suricata + working-directory: suricata + run: | + ./autogen.sh + ./configure --enable-lua + make -j2 + - name: Running suricata-verify + working-directory: suricata + run: python3 ../run.py --quiet