From 55becae8f5352830ffea77c6f0c2f83a13272624 Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed, 21 Sep 2022 20:46:33 +0200 Subject: [PATCH] cirrus-ci: add macOS build with m1 Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Closes #9565 --- .cirrus.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 62e8cdae0e..ebd95d8d54 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -131,3 +131,51 @@ windows_task: %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 install && PATH=/usr/bin:/bin find . -type f -path '*/.libs/*.exe' -print -execdir mv -t .. {} \;" test_script: | %container_cmd% -l -c "cd $(echo '%cd%') && make V=1 TFLAGS='!IDN !SCP ~612 ~1056 %tests%' test-ci" + +macos_task: + name: macOS arm64 normal + macos_instance: + image: ghcr.io/cirruslabs/macos-ventura-xcode:latest + + env: + CIRRUS_CLONE_DEPTH: 10 + MAKE_FLAGS: -j 4 + CFLAGS: "-Wno-vla -mmacosx-version-min=10.9" + + pkginstall_script: + - brew update + - echo libtool autoconf automake pkg-config | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile + - brew update && for i in 1 2 3; do brew bundle install --no-lock --file /tmp/Brewfile && break || sleep 1; done + configure_script: + - autoreconf -fi + - ./configure --enable-warnings --enable-werror --without-ssl --enable-websockets + compile_script: + - make V=1 && make V=1 examples && cd tests && make V=1 + test_script: + - sudo make V=1 test-ci + install_script: + - sudo make V=1 install + +macos_task: + name: macOS arm64 debug + macos_instance: + image: ghcr.io/cirruslabs/macos-ventura-xcode:latest + + env: + CIRRUS_CLONE_DEPTH: 10 + MAKE_FLAGS: -j 4 + CFLAGS: "-Wno-vla -mmacosx-version-min=10.9" + + pkginstall_script: + - brew update + - echo libtool autoconf automake pkg-config nghttp2 | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile + - brew update && for i in 1 2 3; do brew bundle install --no-lock --file /tmp/Brewfile && break || sleep 1; done + configure_script: + - autoreconf -fi + - ./configure --enable-warnings --enable-werror --enable-debug --without-ssl --enable-websockets + compile_script: + - make V=1 && make V=1 examples && cd tests && make V=1 + test_script: + - sudo make V=1 test-ci + install_script: + - sudo make V=1 install -- 2.47.3