From 4fa34d43ef0ca3ce7614f00b51cfe6ed41f2d8a2 Mon Sep 17 00:00:00 2001 From: mio Date: Thu, 26 Sep 2024 18:38:23 +0800 Subject: [PATCH] Fix arm64 wheel https://github.com/pypa/cibuildwheel/blob/93542c397cfe940bcbb8f1eff5c37d345ea16653/cibuildwheel/macos.py#L247-L260 We shall really migrate to cibuildwheel --- .github/workflows/PyPI-publishing.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PyPI-publishing.yml b/.github/workflows/PyPI-publishing.yml index 8b6a9cdc..d4ad4428 100644 --- a/.github/workflows/PyPI-publishing.yml +++ b/.github/workflows/PyPI-publishing.yml @@ -139,8 +139,10 @@ jobs: docker run --rm -v `pwd`:/work -w /work python:3.7-alpine sh /work/bindings/python/musl_wheel.sh elif [ ${{ matrix.config.name }} == 'sdist' ]; then cd bindings/python && python setup.py sdist + elif [ ${{ matrix.config.name }} == 'macos_arm64' ]; then + cd bindings/python && _PYTHON_HOST_PLATFORM="macosx-11.0-arm64" ARCHFLAGS="-arch arm64" python setup.py bdist_wheel else - cd bindings/python && ARCHFLAGS="-arch ${{ matrix.config.arch }}" python setup.py bdist_wheel + cd bindings/python && python setup.py bdist_wheel fi - name: '📤 Upload artifact' uses: actions/upload-artifact@v4