Skip to content

Commit

Permalink
putting CIBW_ARCHS: 'all' and grouping linux instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Natooz committed Sep 18, 2024
1 parent 5d2acdc commit 6156269
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/test_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# - [windows-2022, win32, ""]
python: ["cp38", "cp39", "cp310", "cp311", "cp312", "pp39"]
exclude:
- buildplat: [windows-2022, win32]
- buildplat: [windows-2022, win32]
python: "pp39"
- buildplat: [ ubuntu-latest, musllinux_x86_64 ]
python: "pp39"
Expand All @@ -47,37 +47,17 @@ jobs:
with:
architecture: 'x86'

- name: Build wheels for manylinux x86_64
if: ${{ matrix.buildplat[1] == 'manylinux_x86_64' }}
- name: Build wheels for linux
if: ${{ contains(matrix.buildplat[1], 'linux') }}
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux_2_28_x86_64

- name: Build wheels for manylinux aarch64
if: ${{ matrix.buildplat[1] == 'manylinux_aarch64' }}
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux_2_28_aarch64

- name: Build wheels for musllinux x86_64
if: ${{ matrix.buildplat[1] == 'musllinux_x86_64' }}
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_MUSLLINUX_X86_64_IMAGE: quay.io/pypa/musllinux_1_2_x86_64

- name: Build wheels for musllinux aarch64
if: ${{ matrix.buildplat[1] == 'musllinux_aarch64' }}
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_MUSLLINUX_AARCH64_IMAGE: quay.io/pypa/musllinux_1_2_aarch64
CIBW_ARCHS: 'all'

- name: Build wheels
if: ${{ !contains(matrix.buildplat[1], 'linux') }}
Expand Down

0 comments on commit 6156269

Please # to comment.