From d645848fd3f803a0f0b82e5f80066535287fe4ad Mon Sep 17 00:00:00 2001 From: mio Date: Thu, 26 Sep 2024 17:26:16 +0800 Subject: [PATCH] Fix macos wheels --- .github/workflows/PyPI-publishing.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PyPI-publishing.yml b/.github/workflows/PyPI-publishing.yml index d17218539a..4a1840d4a3 100644 --- a/.github/workflows/PyPI-publishing.yml +++ b/.github/workflows/PyPI-publishing.yml @@ -60,15 +60,15 @@ jobs: } - { os: macos-12, - arch: x64, + arch: x86_64, python-ver: '3.8', name: 'macos_x86_64' } - { os: macos-14, - arch: aarch64, + arch: arm64, python-ver: '3.10', - name: 'macos_aarch64' + name: 'macos_arm64' } steps: - uses: actions/checkout@v4 @@ -132,7 +132,7 @@ jobs: elif [ ${{ matrix.config.name }} == 'sdist' ]; then cd bindings/python && python setup.py sdist else - cd bindings/python && python setup.py bdist_wheel + cd bindings/python && ARCHFLAGS="-arch ${{ matrix.config.arch }}" python setup.py bdist_wheel fi - name: '📤 Upload artifact' uses: actions/upload-artifact@v4