cirrus-ci: add macOS build with m1

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>

Closes #9565
This commit is contained in:
Philip H 2022-09-21 20:46:33 +02:00 коммит произвёл Daniel Stenberg
Родитель 2437fac013
Коммит 55becae8f5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 5CC908FDB71E12C2
1 изменённых файлов: 48 добавлений и 0 удалений

Просмотреть файл

@ -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