]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
ci: add almalinux build to test on RHEL-like systems
authorJason Ish <jason.ish@oisf.net>
Fri, 17 Sep 2021 22:24:03 +0000 (16:24 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 28 Sep 2021 16:10:03 +0000 (10:10 -0600)
The test is done on Ubuntu, but there are some variations
between RHEL-like and Ubuntu that we should catch.

.github/workflows/builds.yml

index 807d70476f5fa5cc2e3ea5228247774e13de0efe..4e3bcdd1854d7e51cd4bca1ef3af56d9a25dc44e 100644 (file)
@@ -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