Fix arm64 wheel

93542c397c/cibuildwheel/macos.py (L247-L260)

We shall really migrate to cibuildwheel
This commit is contained in:
mio 2024-09-26 18:38:23 +08:00
parent 9f89428abf
commit 4fa34d43ef
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -139,8 +139,10 @@ jobs:
docker run --rm -v `pwd`:/work -w /work python:3.7-alpine sh /work/bindings/python/musl_wheel.sh 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 elif [ ${{ matrix.config.name }} == 'sdist' ]; then
cd bindings/python && python setup.py sdist 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 else
cd bindings/python && ARCHFLAGS="-arch ${{ matrix.config.arch }}" python setup.py bdist_wheel cd bindings/python && python setup.py bdist_wheel
fi fi
- name: '📤 Upload artifact' - name: '📤 Upload artifact'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4