add new build architectures
authorrobin
Wed, 29 Sep 2021 09:52:20 +0100
changeset 110 dc7ef4046ffc
parent 109 c929a89bd8d6
child 111 45fa7a83c62b
add new build architectures
.github/workflows/buildwheels.yml
--- a/.github/workflows/buildwheels.yml	Tue Sep 28 17:07:40 2021 +0100
+++ b/.github/workflows/buildwheels.yml	Wed Sep 29 09:52:20 2021 +0100
@@ -28,11 +28,14 @@
     name: Build wheels on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     env:
-      CIBW_SKIP: pp*
+      CIBW_SKIP: pp* cp37-macosx-arm64 cp37-macosx-universal2 cp36-macosx-arm64 cp36-macosx-universal2
       #CIBW_BEFORE_BUILD_LINUX: yum install cairo-devel -y
       CIBW_BEFORE_TEST: pip install --no-cache-dir psutil
       #CIBW_TEST_REQUIRES: "${{ matrix.os != 'macos-latest' && 'pyphen pycairo rlPyCairo' || 'pyphen' }}"
-      #CIBW_TEST_SKIP: "*-macosx*"
+
+      # Will avoid testing on emulated architectures
+      # Skip trying to test arm64 builds on Intel Macs
+      CIBW_TEST_SKIP: "*-manylinux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64"
       CIBW_TEST_COMMAND: python "{project}/test/runAll.py"
       CIBW_TEST_COMMAND_WINDOWS: python "{project}\test\runAll.py"
       CIBW_BUILD_VERBOSITY: 3
@@ -55,7 +58,8 @@
       - name: Build wheels
         run: python -m cibuildwheel --output-dir wheelhouse
         env:
-          CIBW_ARCHS_MACOS: x86_64 arm64
+          CIBW_ARCHS_LINUX: auto aarch64
+          CIBW_ARCHS_MACOS: x86_64 arm64 universal2
 
       - name: upload wheels
         env: