From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:46:33 +0000 (+0200) Subject: cirrus-ci: add macOS build with m1 X-Git-Tag: curl-7_86_0~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55becae8f5352830ffea77c6f0c2f83a13272624;p=thirdparty%2Fcurl.git cirrus-ci: add macOS build with m1 Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Closes #9565 --- 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