From: Jason Ish Date: Fri, 26 Apr 2024 16:02:26 +0000 (-0600) Subject: github-ci: add ubuntu 24.04 build with cocci X-Git-Tag: suricata-8.0.0-beta1~1359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c2402f5e7f74a07ae7b7699ff2e49b71c4110c7;p=thirdparty%2Fsuricata.git github-ci: add ubuntu 24.04 build with cocci Rather basic 24.04 build for now, but use Cocci as Cocci is working properly here, but not working in the latest Fedora releases. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 60e4286a6d..408f64dd8f 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -1348,6 +1348,81 @@ jobs: exit 0 fi + ubuntu-24-04: + name: Ubuntu 24.04 (cocci) + runs-on: ubuntu-latest + container: ubuntu:24.04 + needs: [prepare-deps] + steps: + - name: Cache ~/.cargo + uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 + with: + path: ~/.cargo + key: ${{ github.job }}-cargo + + - name: Determine number of CPUs + run: echo CPUS=$(nproc --all) >> $GITHUB_ENV + + - name: Install dependencies + run: | + apt update + apt -y install \ + autoconf \ + automake \ + build-essential \ + cargo \ + cbindgen \ + clang-14 \ + coccinelle \ + dpdk-dev \ + git \ + jq \ + libcap-ng-dev \ + libevent-dev \ + libevent-pthreads-2.1-7 \ + libhiredis-dev \ + libhyperscan-dev \ + libjansson-dev \ + liblua5.4-dev \ + libmagic-dev \ + libnet1-dev \ + libnetfilter-queue-dev \ + libnetfilter-queue1 \ + libnfnetlink-dev \ + libnfnetlink0 \ + libnuma-dev \ + libpcap-dev \ + libpcre2-dev \ + libpython3.12 \ + libtool \ + libyaml-dev \ + llvm-14-dev \ + make \ + parallel \ + python-is-python3 \ + python3-yaml \ + rustc \ + software-properties-common \ + zlib1g \ + zlib1g-dev + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - run: git config --global --add safe.directory /__w/suricata/suricata + - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 + with: + name: prep + path: prep + - run: tar xf prep/libhtp.tar.gz + - run: tar xf prep/suricata-update.tar.gz + - run: tar xf prep/suricata-verify.tar.gz + - run: ./autogen.sh + - run: ./configure --enable-unittests --enable-coccinelle + - run: make -j ${{ env.CPUS }} + - run: CONCURRENCY_LEVEL=${{ env.CPUS }} make check + - run: python3 ./suricata-verify/run.py -q --debug-failed + - run: make install + - run: make install-headers + - run: make install-library + ubuntu-22-04-cov-ut: name: Ubuntu 22.04 (unittests coverage) runs-on: ubuntu-latest