Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compile wheels for Windows ARM64 and Linux aarch64/ppc64le/s390x #14

Merged
merged 4 commits into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions .github/workflows/build-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,52 @@ on:

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }} [${{ matrix.archs }}]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
include:
# macOS Intel & ARM
- os: macos-latest
archs: all
# Windows x86 32-bit and 64-bit
- os: windows-latest
archs: auto
# Windows ARM
- os: windows-latest
archs: ARM64
# Linux x86 32-bit and 64-bit
- os: ubuntu-latest
archs: auto
# Linux aarch64
- os: ubuntu-latest
archs: aarch64
# Linux ppc64le
- os: ubuntu-latest
archs: ppc64le
# Linux s390x
- os: ubuntu-latest
archs: s390x

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_BUILD: "cp313-*"
CIBW_ARCHS_MACOS: all
CIBW_ARCHS: ${{ matrix.archs }}
CIBW_PRERELEASE_PYTHONS: true

- uses: actions/upload-artifact@v4
with:
name: artifact-cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
name: artifact-cibw-wheels-${{ matrix.os }}-${{ matrix.archs }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

make-sdist:
Expand Down
Loading