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

Make sure x64 linux wheels are built #273

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
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
48 changes: 30 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,41 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python: [38, 39, 310, 311, 312]
bitness: [32, 64]
include:
# Run 32 and 64 bit version in parallel for Linux and Windows
platform_id:
- win_amd64
- win32
- manylinux_x86_64
- manylinux_i686
- manylinux_aarch64
- macosx_universal2
exclude:
# Skip Linux and Mac builds on Windows
- os: windows-latest
bitness: 64
platform_id: win_amd64
platform_id: manylinux_aarch64
- os: windows-latest
platform_id: manylinux_i686
- os: windows-latest
bitness: 32
platform_id: win32
- os: ubuntu-latest
bitness: 64
platform_id: manylinux_x86_64
- os: windows-latest
platform_id: macosx_universal2
# Skip Mac and Windows builds on Linux
- os: ubuntu-latest
bitness: 32
platform_id: manylinux_i686
platform_id: macosx_universal2
- os: ubuntu-latest
bitness: 64
platform_id: manylinux_aarch64
platform_id: win_amd64
- os: ubuntu-latest
platform_id: win32
# Skip Linux and Windows builds on Mac
- os: macos-latest
bitness: 64
platform_id: macosx_universal2
exclude:
platform_id: win_amd64
- os: macos-latest
platform_id: win32
- os: macos-latest
platform_id: manylinux_x86_64
- os: macos-latest
bitness: 32
platform_id: manylinux_i686
- os: macos-latest
platform_id: manylinux_aarch64
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 universal2
Expand All @@ -61,7 +72,8 @@ jobs:
- uses: actions/checkout@v3

- name: Set up QEMU
if: runner.os == 'Linux'
if: |
runner.os == 'Linux' && (matrix.platform_id == 'manylinux_aarch64' || matrix.platform_id == 'manylinux_i686')
uses: docker/setup-qemu-action@v2
with:
platforms: all
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -22,4 +21,4 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
run: tox