]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/cirrus: merge existing macOS jobs into a job matrix 9627/head
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 7 Oct 2022 20:04:55 +0000 (22:04 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 8 Oct 2022 21:49:55 +0000 (23:49 +0200)
Ref: #9627
Reviewed-by: Philip H.
Closes #9672

.cirrus.yml

index 59dc45c85b0ba8ce388d09f3b3b21c84640b3c3d..1655444c65ffdb324f6286bd3ed0f8c4b580a927 100644 (file)
@@ -135,33 +135,19 @@ windows_task:
     %container_cmd% -l -c "cd $(echo '%cd%') && %make_cmd% TFLAGS='!IDN !SCP ~612 ~1056 %tests%' test-ci"
 
 macos_task:
-  name: macOS arm64 normal
+  name: macOS arm64
   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
+  matrix:
+    - name: macOS arm64 normal
+      env:
+        install_packages: nghttp2
+        configure: --without-ssl
+    - name: macOS arm64 debug
+      env:
+        install_packages: nghttp2
+        configure: --without-ssl --enable-debug
 
   env:
     CIRRUS_CLONE_DEPTH: 10
@@ -169,12 +155,13 @@ macos_task:
     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
+    - echo libtool autoconf automake pkg-config ${install_packages} | 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
+    - sudo -H python3 -m pip install --upgrade pip
+    - sudo -H python3 -m pip install impacket
   configure_script:
     - autoreconf -fi
-    - ./configure --enable-warnings --enable-werror --enable-debug --without-ssl --enable-websockets
+    - ./configure --enable-warnings --enable-werror --enable-websockets ${configure}
   compile_script:
     - make V=1 && make V=1 examples && cd tests && make V=1
   test_script: