From 2d0c941d10810b9a25d9950d1c8a08d921403d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fritze?= Date: Mon, 8 Jul 2024 16:23:09 +0200 Subject: [PATCH] add workaround for py3.8 on M1 runner --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94cf789..eb3368b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,8 +96,15 @@ jobs: uses: docker/setup-qemu-action@v2.2.0 if: runner.os == 'Linux' && ((matrix.use_qemu) && fromJSON(env.USE_QEMU)) + - uses: actions/setup-python@v5 + with: + python-version: 3.8 + # the pre-installed python 3.8 isn't native and cannot produce ARM64 wheels + # see also https://github.com/pypa/cibuildwheel/pull/1871 + if: runner.os == 'macOS' && runner.arch == 'arm64' + - name: Build wheels - uses: pypa/cibuildwheel@v2.19 + uses: pypa/cibuildwheel@v2.19.2 if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU) env: CIBW_ARCHS: "${{ matrix.arch }}"