From 2fbb4b77f094a43ea13ed43fbcebd06c9e666ed1 Mon Sep 17 00:00:00 2001 From: LiuGaoyong Date: Mon, 29 Sep 2025 07:12:45 +0800 Subject: [PATCH 1/5] update wheels of github action --- .github/workflows/wheel.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index b8fffb1..48cf35d 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -5,8 +5,8 @@ on: types: [published] push: tags: - - 'v*' # Alternative: only build for tags. - # pull_request: + - "v*" # Alternative: only build for tags. + pull_request: jobs: build_wheels: @@ -40,42 +40,54 @@ jobs: - os: ubuntu-latest python: 39 platform_id: manylinux_x86_64 + manylinux_image: manylinux2014 - os: ubuntu-latest python: 310 platform_id: manylinux_x86_64 + manylinux_image: manylinux2014 - os: ubuntu-latest python: 311 platform_id: manylinux_x86_64 + manylinux_image: manylinux2014 - os: ubuntu-latest python: 312 platform_id: manylinux_x86_64 + manylinux_image: manylinux2014 - os: ubuntu-latest python: 313 platform_id: manylinux_x86_64 + manylinux_image: manylinux2014 - os: ubuntu-latest python: 313t platform_id: manylinux_x86_64 cibw_enable: cpython-freethreading + manylinux_image: manylinux2014 # linux-aarch64 - os: ubuntu-24.04-arm python: 39 platform_id: manylinux_aarch64 + manylinux_image: manylinux2014 - os: ubuntu-24.04-arm python: 310 platform_id: manylinux_aarch64 + manylinux_image: manylinux2014 - os: ubuntu-24.04-arm python: 311 platform_id: manylinux_aarch64 + manylinux_image: manylinux2014 - os: ubuntu-24.04-arm python: 312 platform_id: manylinux_aarch64 + manylinux_image: manylinux2014 - os: ubuntu-24.04-arm python: 313 platform_id: manylinux_aarch64 + manylinux_image: manylinux2014 - os: ubuntu-24.04-arm python: 313t platform_id: manylinux_aarch64 cibw_enable: cpython-freethreading + manylinux_image: manylinux2014 # macos-x86-64 - os: macos-13 python: 39 @@ -145,7 +157,7 @@ jobs: - uses: actions/setup-python@v5 if: runner.os == 'Windows' with: - python-version: '3.13' + python-version: "3.13" - run: pipx run --python 3.13 cibuildwheel==3.1.1 if: runner.os == 'Windows' shell: msys2 {0} @@ -198,12 +210,12 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/download-artifact@v4 with: pattern: cibw-* path: dist merge-multiple: true - - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + - uses: pypa/gh-action-pypi-publish@release/v1 From adebee826729ba33f8b45109ef1b5a57dbde0053 Mon Sep 17 00:00:00 2001 From: LiuGaoyong Date: Mon, 29 Sep 2025 07:18:22 +0800 Subject: [PATCH 2/5] update --- .github/workflows/wheel.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 48cf35d..61af20e 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -183,6 +183,7 @@ jobs: CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel" CIBW_BEFORE_ALL_MACOS: "brew install openblas gfortran" CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} + CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }} MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_target }}.0 UV_DEFAULT_INDEX: https://pypi.org/simple UV_INDEX: https://pypi.org/simple From 76f74899acdacb50100ef32adcea931c68649bca Mon Sep 17 00:00:00 2001 From: LiuGaoyong Date: Mon, 29 Sep 2025 07:33:56 +0800 Subject: [PATCH 3/5] update --- .github/workflows/wheel.yml | 57 +++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 61af20e..f581c22 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -36,7 +36,7 @@ jobs: python: 313t platform_id: win_amd64 cibw_enable: cpython-freethreading - # linux-64 + # linux-64 for manylinux2014 - os: ubuntu-latest python: 39 platform_id: manylinux_x86_64 @@ -62,7 +62,7 @@ jobs: platform_id: manylinux_x86_64 cibw_enable: cpython-freethreading manylinux_image: manylinux2014 - # linux-aarch64 + # linux-aarch64 for manylinux2014 - os: ubuntu-24.04-arm python: 39 platform_id: manylinux_aarch64 @@ -88,6 +88,58 @@ jobs: platform_id: manylinux_aarch64 cibw_enable: cpython-freethreading manylinux_image: manylinux2014 + # linux-64 for manylinux_2_17 + - os: ubuntu-latest + python: 39 + platform_id: manylinux_x86_64 + manylinux_image: manylinux_2_17 + - os: ubuntu-latest + python: 310 + platform_id: manylinux_x86_64 + manylinux_image: manylinux_2_17 + - os: ubuntu-latest + python: 311 + platform_id: manylinux_x86_64 + manylinux_image: manylinux_2_17 + - os: ubuntu-latest + python: 312 + platform_id: manylinux_x86_64 + manylinux_image: manylinux_2_17 + - os: ubuntu-latest + python: 313 + platform_id: manylinux_x86_64 + manylinux_image: manylinux_2_17 + - os: ubuntu-latest + python: 313t + platform_id: manylinux_x86_64 + cibw_enable: cpython-freethreading + manylinux_image: manylinux_2_17 + # linux-aarch64 for manylinux_2_17 + - os: ubuntu-24.04-arm + python: 39 + platform_id: manylinux_aarch64 + manylinux_image: manylinux_2_17 + - os: ubuntu-24.04-arm + python: 310 + platform_id: manylinux_aarch64 + manylinux_image: manylinux_2_17 + - os: ubuntu-24.04-arm + python: 311 + platform_id: manylinux_aarch64 + manylinux_image: manylinux_2_17 + - os: ubuntu-24.04-arm + python: 312 + platform_id: manylinux_aarch64 + manylinux_image: manylinux_2_17 + - os: ubuntu-24.04-arm + python: 313 + platform_id: manylinux_aarch64 + manylinux_image: manylinux_2_17 + - os: ubuntu-24.04-arm + python: 313t + platform_id: manylinux_aarch64 + cibw_enable: cpython-freethreading + manylinux_image: manylinux_2_17 # macos-x86-64 - os: macos-13 python: 39 @@ -182,6 +234,7 @@ jobs: CIBW_ENABLE: ${{ matrix.cibw_enable }} CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel" CIBW_BEFORE_ALL_MACOS: "brew install openblas gfortran" + CIBW_ENVIRONMENT_MACOS: CC=gcc-13 CXX=g++-13 FC=gfortran-13 CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }} MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_target }}.0 From c66c4467e7292de4f34c7c7e171919730411cd3f Mon Sep 17 00:00:00 2001 From: LiuGaoyong Date: Mon, 29 Sep 2025 07:38:17 +0800 Subject: [PATCH 4/5] update --- .github/workflows/wheel.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index f581c22..28883cb 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -10,7 +10,7 @@ on: jobs: build_wheels: - name: Build wheels for cp${{ matrix.python }}-${{ matrix.platform_id }} + name: Build wheels for cp${{ matrix.python }}-${{ matrix.platform_id }}${{ matrix.manylinux_image }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -88,58 +88,58 @@ jobs: platform_id: manylinux_aarch64 cibw_enable: cpython-freethreading manylinux_image: manylinux2014 - # linux-64 for manylinux_2_17 + # linux-64 for manylinux_2_28 - os: ubuntu-latest python: 39 platform_id: manylinux_x86_64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-latest python: 310 platform_id: manylinux_x86_64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-latest python: 311 platform_id: manylinux_x86_64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-latest python: 312 platform_id: manylinux_x86_64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-latest python: 313 platform_id: manylinux_x86_64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-latest python: 313t platform_id: manylinux_x86_64 cibw_enable: cpython-freethreading - manylinux_image: manylinux_2_17 - # linux-aarch64 for manylinux_2_17 + manylinux_image: manylinux_2_28 + # linux-aarch64 for manylinux_2_28 - os: ubuntu-24.04-arm python: 39 platform_id: manylinux_aarch64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-24.04-arm python: 310 platform_id: manylinux_aarch64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-24.04-arm python: 311 platform_id: manylinux_aarch64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-24.04-arm python: 312 platform_id: manylinux_aarch64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-24.04-arm python: 313 platform_id: manylinux_aarch64 - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 - os: ubuntu-24.04-arm python: 313t platform_id: manylinux_aarch64 cibw_enable: cpython-freethreading - manylinux_image: manylinux_2_17 + manylinux_image: manylinux_2_28 # macos-x86-64 - os: macos-13 python: 39 @@ -244,7 +244,7 @@ jobs: shell: bash - uses: actions/upload-artifact@v4 with: - name: cibw-wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}-${{ strategy.job-index }} + name: cibw-wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}${{ matrix.manylinux_image }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl build_sdist: From 038fec0c4ad6149b4244f01e1532f2753f08aefe Mon Sep 17 00:00:00 2001 From: LiuGaoyong Date: Mon, 29 Sep 2025 07:43:52 +0800 Subject: [PATCH 5/5] update for macos --- .github/workflows/wheel.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 28883cb..2963e62 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -167,27 +167,27 @@ jobs: platform_id: macosx_x86_64 cibw_enable: cpython-freethreading # macos-arm64 - - os: macos-latest + - os: macos-14 python: 39 macos_target: 14 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 310 macos_target: 14 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 311 macos_target: 14 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 312 macos_target: 14 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 313 macos_target: 14 platform_id: macosx_arm64 - - os: macos-latest + - os: macos-14 python: 313t macos_target: 14 platform_id: macosx_arm64