Skip to content

Commit

Permalink
Update pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Apr 22, 2024
1 parent 1addafe commit c9fb646
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,54 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
# https://github.com/actions/runner-images/tree/main
matrix:
os: [ubuntu-latest, windows-latest, macos-11, macos-latest]
os:
[
ubuntu-20.04,
ubuntu-22.04,
windows-2019,
windows-2022,
macos-12,
macos-13,
macos-14,
]

steps:
- uses: actions/checkout@v3

- name: Set up rust
if: matrix.os != 'ubuntu-latest'
if: matrix.os != 'ubuntu-20.04' && matrix.os != 'ubuntu-22.04'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- run: rustup target add aarch64-apple-darwin
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
if: matrix.os == 'macos-12' || matrix.os == 'macos-13' || matrix.os == 'macos-14'

- run: rustup toolchain install stable-i686-pc-windows-msvc
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-2019' || matrix.os == 'windows-2022'

- run: rustup target add i686-pc-windows-msvc
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-2019' || matrix.os == 'windows-2022'

- name: Set up QEMU
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*"
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64 ppc64le s390x"
# CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_MACOS: "universal2"
# We don't build ARM64 wheels yet because there's a Rust issue
CIBW_ARCHS_WINDOWS: "auto"
CIBW_ARCHS_WINDOWS: "AMD64 x86"
# Rust nighlty doesn't seem to be available for musl linux on i686 and ppc64le and s390x (yet)
CIBW_SKIP: "*-musllinux_i686 *-musllinux_ppc64le *-musllinux_s390x"

Expand Down

0 comments on commit c9fb646

Please sign in to comment.