ci: update to macos latest

pull/7703/head
Philippe Antoine 3 years ago committed by Victor Julien
parent f3d3274e92
commit e1e03c25c9

@ -1302,8 +1302,7 @@ jobs:
macos-latest: macos-latest:
name: MacOS Latest name: MacOS Latest
# use 10.15 for now. Build fails on macos-11 (aka macos-latest) runs-on: macos-latest
runs-on: macos-10.15
needs: [prepare-deps] needs: [prepare-deps]
steps: steps:
# Cache Rust stuff. # Cache Rust stuff.
@ -1343,7 +1342,8 @@ jobs:
- run: ./autogen.sh - run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests - run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests
- run: make -j2 - run: make -j2
- run: make check # 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 - run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify - name: Running suricata-verify
run: python3 ./suricata-verify/run.py -q run: python3 ./suricata-verify/run.py -q

@ -110,7 +110,14 @@ void Daemonize (void)
through conf file */ through conf file */
/* Creates a new process */ /* Creates a new process */
#if defined(OS_DARWIN) && defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
pid = fork(); pid = fork();
#if defined(OS_DARWIN) && defined(__clang__)
#pragma clang diagnostic pop
#endif
if (pid < 0) { if (pid < 0) {
/* Fork error */ /* Fork error */

Loading…
Cancel
Save