From c7ae4c29396afa1057fc2c7894ba429d51b8316d Mon Sep 17 00:00:00 2001 From: Ivan Carvalho Date: Tue, 17 Feb 2026 23:11:20 -0500 Subject: [PATCH 1/2] Use ubuntu-24.04-ppc64le and ubuntu-24.04-s390x runners for wheels.yml --- .github/workflows/wheels.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f8842c5e28..a1ec30456e 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -91,7 +91,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-24.04-ppc64le] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -99,10 +99,6 @@ jobs: with: python-version: '3.12' - uses: dtolnay/rust-toolchain@stable - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - name: Install cibuildwheel run: | python -m pip install -U --group releaseinfra @@ -129,7 +125,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-24.04-s390x] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -137,10 +133,6 @@ jobs: with: python-version: '3.12' - uses: dtolnay/rust-toolchain@stable - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - name: Install cibuildwheel run: | python -m pip install -U --group releaseinfra From 7941738187b302ebf2188a20a8f696bc5bdf45bd Mon Sep 17 00:00:00 2001 From: Ivan Carvalho Date: Sun, 29 Mar 2026 00:28:30 -0400 Subject: [PATCH 2/2] Refactor s390x and ppc64le jobs to bootstrap Python/cibuildwheel --- .github/workflows/wheels.yml | 58 ++++++++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index a1ec30456e..24283646e7 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -86,24 +86,25 @@ jobs: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: os: [ubuntu-24.04-ppc64le] steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.12' - uses: dtolnay/rust-toolchain@stable - - name: Install cibuildwheel + - name: Install uv run: | - python -m pip install -U --group releaseinfra + python3 -m pip install --user uv==0.11.2 + - name: Install cibuildwheel dependencies + run: | + python3 -m uv python install 3.12 + python3 -m uv venv --python 3.12 .venv + source .venv/bin/activate + uv pip install --group releaseinfra - name: Build wheels run: | + source .venv/bin/activate python -m cibuildwheel --output-dir wheelhouse env: CIBW_SKIP: pp* cp314t* *win32 *musl* @@ -112,6 +113,18 @@ jobs: with: path: ./wheelhouse/*.whl name: wheel-builds-ppc64le + upload_wheels_ppc64le: + name: Upload wheels for ppc64le + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + needs: ["build_wheels_ppc64le", "upload_shared_wheels"] + steps: + - uses: actions/download-artifact@v4 + with: + name: wheel-builds-ppc64le + path: wheelhouse - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: @@ -120,24 +133,25 @@ jobs: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: os: [ubuntu-24.04-s390x] steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.12' - uses: dtolnay/rust-toolchain@stable - - name: Install cibuildwheel + - name: Install uv run: | - python -m pip install -U --group releaseinfra + python3 -m pip install --user uv==0.11.2 + - name: Install cibuildwheel dependencies + run: | + python3 -m uv python install 3.12 + python3 -m uv venv --python 3.12 .venv + source .venv/bin/activate + uv pip install --group releaseinfra - name: Build wheels run: | + source .venv/bin/activate python -m cibuildwheel --output-dir wheelhouse env: CIBW_SKIP: pp* cp314t* *win32 *musl* @@ -146,6 +160,18 @@ jobs: with: path: ./wheelhouse/*.whl name: wheel-builds-s390x + upload_wheels_s390x: + name: Upload wheels for s390x + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + needs: ["build_wheels_s390x", "upload_shared_wheels"] + steps: + - uses: actions/download-artifact@v4 + with: + name: wheel-builds-s390x + path: wheelhouse - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: