From fb77ed76036f6d380aec0ae661e57b3aa632b35c Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Wed, 31 Jul 2024 01:13:47 +0800 Subject: [PATCH] [CI] Fix Python wheel workflow. (#10649) * [CI] Fix Python wheel workflow. * Use Python 3.10 for building wheels --------- Co-authored-by: Hyunsu Cho --- .github/workflows/python_wheels.yml | 2 +- tests/ci_build/build_python_wheels.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_wheels.yml b/.github/workflows/python_wheels.yml index 67b565459..235942713 100644 --- a/.github/workflows/python_wheels.yml +++ b/.github/workflows/python_wheels.yml @@ -36,7 +36,7 @@ jobs: with: miniforge-variant: Mambaforge miniforge-version: latest - python-version: ["3.10"] + python-version: "3.10" use-mamba: true - name: Build wheels run: bash tests/ci_build/build_python_wheels.sh ${{ matrix.platform_id }} ${{ github.sha }} diff --git a/tests/ci_build/build_python_wheels.sh b/tests/ci_build/build_python_wheels.sh index 8d18dfca5..d9927905c 100644 --- a/tests/ci_build/build_python_wheels.sh +++ b/tests/ci_build/build_python_wheels.sh @@ -15,13 +15,13 @@ if [[ "$platform_id" == macosx_* ]]; then if [[ "$platform_id" == macosx_arm64 ]]; then # MacOS, Apple Silicon wheel_tag=macosx_12_0_arm64 - cpython_ver=39 + cpython_ver=310 cibw_archs=arm64 export MACOSX_DEPLOYMENT_TARGET=12.0 elif [[ "$platform_id" == macosx_x86_64 ]]; then # MacOS, Intel 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 export MACOSX_DEPLOYMENT_TARGET=10.15 else