[CI] Fix Python wheel workflow. (#10649)

* [CI] Fix Python wheel workflow.

* Use Python 3.10 for building wheels

---------

Co-authored-by: Hyunsu Cho <phcho@nvidia.com>
This commit is contained in:
Jiaming Yuan 2024-07-31 01:13:47 +08:00 committed by GitHub
parent 827d0e8edb
commit fb77ed7603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ jobs:
with: with:
miniforge-variant: Mambaforge miniforge-variant: Mambaforge
miniforge-version: latest miniforge-version: latest
python-version: ["3.10"] python-version: "3.10"
use-mamba: true use-mamba: true
- name: Build wheels - name: Build wheels
run: bash tests/ci_build/build_python_wheels.sh ${{ matrix.platform_id }} ${{ github.sha }} run: bash tests/ci_build/build_python_wheels.sh ${{ matrix.platform_id }} ${{ github.sha }}

View File

@ -15,13 +15,13 @@ if [[ "$platform_id" == macosx_* ]]; then
if [[ "$platform_id" == macosx_arm64 ]]; then if [[ "$platform_id" == macosx_arm64 ]]; then
# MacOS, Apple Silicon # MacOS, Apple Silicon
wheel_tag=macosx_12_0_arm64 wheel_tag=macosx_12_0_arm64
cpython_ver=39 cpython_ver=310
cibw_archs=arm64 cibw_archs=arm64
export MACOSX_DEPLOYMENT_TARGET=12.0 export MACOSX_DEPLOYMENT_TARGET=12.0
elif [[ "$platform_id" == macosx_x86_64 ]]; then elif [[ "$platform_id" == macosx_x86_64 ]]; then
# MacOS, Intel # MacOS, Intel
wheel_tag=macosx_10_15_x86_64.macosx_11_0_x86_64.macosx_12_0_x86_64 wheel_tag=macosx_10_15_x86_64.macosx_11_0_x86_64.macosx_12_0_x86_64
cpython_ver=39 cpython_ver=310
cibw_archs=x86_64 cibw_archs=x86_64
export MACOSX_DEPLOYMENT_TARGET=10.15 export MACOSX_DEPLOYMENT_TARGET=10.15
else else