Skip to content

Commit

Permalink
🔥 remove emulated wheel builds (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer authored Jan 22, 2025
1 parent 40ef2db commit b0e155a
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/reusable-python-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
description: "The version of Z3 to set up"
default: "4.13.4"
type: string
build-emulated-wheels:
description: "Whether to build wheels for platforms that require emulation"
default: true
type: boolean

jobs:
build_sdist:
Expand Down Expand Up @@ -123,43 +119,3 @@ jobs:
with:
name: ${{ github.event_name == 'pull_request' && 'dev-' || '' }}cibw-wheels-${{ matrix.runs-on }}-${{ strategy.job-index }}
path: wheelhouse/*.whl

build_wheels_emulation:
if: ${{ !inputs.pure-python && inputs.build-emulated-wheels }}
name: 🎡 ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# build wheels for all supported Python versions on all platforms that require emulation
arch: ["s390x", "ppc64le"]
steps:
# check out the repository (including submodules and all history)
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
# set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# optionally set up Z3
- if: ${{ inputs.setup-z3 }}
name: Set environment variables for Z3 installation in manylinux image
run: |
echo "CIBW_BEFORE_ALL_LINUX=/opt/python/cp311-cp311/bin/pip install z3-solver==${{ inputs.z3-version }}" >> $GITHUB_ENV
# set up uv for faster Python package management
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: false
# run cibuildwheel to build wheels for the specified Python version
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_TEST_SKIP: "cp*"
# upload the wheels as an artifact (adds a `dev-` prefix for PRs)
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event_name == 'pull_request' && 'dev-' || '' }}cibw-wheels-${{ matrix.arch }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

0 comments on commit b0e155a

Please sign in to comment.