This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to tag v0.12.0-a5
in repository https://gitbox.apache.org/repos/asf/fory.git

commit 1a471d267d45abca17f354064a43ccf1ff5c6b16
Author: chaokunyang <[email protected]>
AuthorDate: Fri Aug 15 18:16:04 2025 +0800

    rename to manylinux1
---
 .github/workflows/release.yaml | 76 ++++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 33 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 0d3728421..b99a950c1 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -26,49 +26,30 @@ permissions:
   contents: read
 
 jobs:
-  build-wheels:
-    name: Build Wheels
-    runs-on: ${{ matrix.os }}
+  build-wheels-linux:
+    name: Build Wheels for Linux
+    runs-on: "${{ matrix.os }}"
     strategy:
       matrix:
-        python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
-        os: [ubuntu-latest, ubuntu-24.04-arm, macos-13, macos-14, 
windows-2022]  # macos-13: x86, macos-14: arm64
-    env:
-      manylinux_x86_64_image: quay.io/pypa/manylinux_2_28_x86_64
-      manylinux_aarch64_image: quay.io/pypa/manylinux_2_28_aarch64
-
+        include:
+          - { os: ubuntu-latest, target: "x86_64", image: 
quay.io/pypa/manylinux1_x86_64, plat: manylinux1_x86_64 }
+          - { os: ubuntu-latest, target: "x86_64", image: 
quay.io/pypa/manylinux2014_x86_64, plat: manylinux_2_17_x86_64 }
+          - { os: ubuntu-latest, target: "x86_64", image: 
quay.io/pypa/manylinux_2_28_x86_64, plat: manylinux_2_28_x86_64 }
+          - { os: ubuntu-24.04-arm, target: "aarch64", image: 
quay.io/pypa/manylinux_2_28_aarch64, plat: manylinux_2_28_aarch64 }
     steps:
       - uses: actions/checkout@v4
       - name: Set up Python ${{ matrix.python-version }}
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
-      - name: Install bazel (for macOS and Windows)
-        if: "!startsWith(matrix.os, 'ubuntu')"
-        shell: bash
-        run: |
-          if [ "$RUNNER_OS" == "Windows" ]; then
-              ./ci/run_ci.sh install_bazel_windows
-          else
-              ./ci/run_ci.sh install_bazel
-          fi
       - name: Update version in setup.py
         shell: bash
         run: ci/deploy.sh bump_py_version
-       # --------- Use manylinux for Linux wheels ---------
-      - name: Build a binary wheel (Linux, manylinux)
-        if: startsWith(matrix.os, 'ubuntu')
+      - name: Build a binary wheel (Linux)
         shell: bash
         run: |
-           DOCKER_IMAGE=""
-           PLAT=""
-           if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
-             DOCKER_IMAGE="${{ env.manylinux_x86_64_image }}"
-             PLAT="manylinux_2_28_x86_64"
-           elif [[ "${{ matrix.os }}" == "ubuntu-24.04-arm" ]]; then
-             DOCKER_IMAGE="${{ env.manylinux_aarch64_image }}"
-             PLAT="manylinux_2_28_aarch64"
-           fi
+           DOCKER_IMAGE="${{ matrix.image }}"
+           PLAT="${{ matrix.plat }}"
            PY_VERSION=${{ matrix.python-version }}
            echo "PY_VERSION: $PY_VERSION"
            PY_VERSION=${PY_VERSION//./}
@@ -91,10 +72,37 @@ jobs:
                bash ci/run_ci.sh install_bazel
                bash ci/deploy.sh build_pyfory
              "
+      - name: Upload Wheel Artifact
+        uses: actions/upload-artifact@v4
+        with:
+          name: pyfory-wheels-${{ matrix.os }}-${{ matrix.python-version }}
+          path: dist/*.whl
 
-       # --------- Native (not in container) for macOS and Windows ---------
+  build-wheels-macos_and_windows:
+    name: Build Wheels
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
+        os: [macos-13, macos-14, windows-2022]  # macos-13: x86, macos-14: 
arm64
+    steps:
+      - uses: actions/checkout@v4
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ matrix.python-version }}
+      - name: Install bazel (for macOS and Windows)
+        shell: bash
+        run: |
+          if [ "$RUNNER_OS" == "Windows" ]; then
+              ./ci/run_ci.sh install_bazel_windows
+          else
+              ./ci/run_ci.sh install_bazel
+          fi
+      - name: Update version in setup.py
+        shell: bash
+        run: ci/deploy.sh bump_py_version
       - name: Build a binary wheel (native)
-        if: "!startsWith(matrix.os, 'ubuntu')"
         shell: bash
         run: |
            ci/deploy.sh build_pyfory
@@ -107,7 +115,9 @@ jobs:
   publish-wheels:
     name: Publish Wheels
     runs-on: ubuntu-latest
-    needs: build-wheels
+    needs:
+      - build-wheels-linux
+      - build-wheels-macos_and_windows
     permissions:
       contents: read
       id-token: write


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to