]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ci: fix macos build 10978/head 10989/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 23 Apr 2024 21:29:19 +0000 (23:29 +0200)
committerShivani Bhardwaj <shivanib134@gmail.com>
Mon, 29 Apr 2024 07:24:33 +0000 (12:54 +0530)
use brew instead of pip
limit the number of jobs for make
set a prefix where we can install
use brew flags for library finding

(cherry picked from commit 47a1502dbb0d9ef43a820c956d0396c83b488e07)

.github/workflows/builds.yml

index 577595094050b7faa95e3ea415266c18a01f07c9..e4358b45a262a0ba1af98ded5729d85147781dd4 100644 (file)
@@ -2479,7 +2479,9 @@ jobs:
           libnet \
           libtool \
           libyaml \
+          pyyaml \
           lua \
+          pcre2 \
           pkg-config \
           python \
           rust \
@@ -2487,7 +2489,6 @@ jobs:
       - name: Install cbindgen
         run: cargo install --debug --version 0.24.3 cbindgen
       - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
-      - run: pip3 install PyYAML
       - uses: actions/checkout@v3.5.3
       - name: Downloading prep archive
         uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
@@ -2497,8 +2498,8 @@ jobs:
       - run: tar xvf prep/libhtp.tar.gz
       - run: tar xvf prep/suricata-update.tar.gz
       - run: ./autogen.sh
-      - run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests
-      - run: make -j2
+      - run: CPATH="$HOMEBREW_PREFIX/include:$CPATH" LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH" PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests --prefix="$HOME/.local/"
+      - run: CPATH="$HOMEBREW_PREFIX/include:$CPATH" LIBRARY_PATH="$HOMEBREW_PREFIX/lib:$LIBRARY_PATH" PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" CFLAGS="${DEFAULT_CFLAGS}" make -j2
       # somehow it gets included by some C++ stdlib header (case unsensitive)
       - run: rm libhtp/VERSION && make check
       - run: tar xf prep/suricata-verify.tar.gz