diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 22b939671..879ea4e2b 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -324,6 +324,14 @@ jobs: if: ${{ inputs.include-debug-info-for-macos }} run: echo "INCLUDE_DSYM=1" >> $GITHUB_ENV + # Install native version of Python 3.8 on arm64 + # The default Python 3.8 install used by cibuildwheel is for x86_64 + # https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64 + - uses: actions/setup-python@v5 + with: + python-version: 3.8 + if: runner.os == 'macOS' && runner.arch == 'ARM64' + - name: Build wheel uses: pypa/cibuildwheel@v2.19.2 env: