diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index feeffcf27..7c0ab2255 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -209,6 +209,10 @@ jobs: shell: bash - name: Install experimental Python 3.8 arm64 build + # By default, cibuildwheel installs and uses Python 3.8 x86_64 to cross compile arm64 wheels + # There is a bug that builds x86_64 wheels instead, so we install this Python 3.8 native ARM build to ensure + # the wheel is compiled in arm64 + # https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64 if: ${{ matrix.platforms[0] == 'macosx_arm64' && matrix.python == 'cp38' }} run: | curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg