Fix macos wheels

This commit is contained in:
mio 2024-09-26 17:26:16 +08:00
parent 08e14abf70
commit d645848fd3
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -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