Skip to content

Commit

Permalink
Merge pull request #273 from jams2/x64-linux-wheels
Browse files Browse the repository at this point in the history
Make sure x64 linux wheels are built
  • Loading branch information
tobgu authored Oct 18, 2023
2 parents dc8857f + 9754ea5 commit d19cc72
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
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

0 comments on commit d19cc72

Please sign in to comment.