]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cirrus-ci: add macOS build with m1
authorPhilip H <47042125+pheiduck@users.noreply.github.com>
Wed, 21 Sep 2022 18:46:33 +0000 (20:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Sep 2022 08:56:14 +0000 (10:56 +0200)
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Closes #9565

.cirrus.yml

index 62e8cdae0e935874a8c342627b3d11a3cb311e04..ebd95d8d54a4d9bc8b4dcae74d4ebbf44882495b 100644 (file)
@@ -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