Skip to content
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
17 changes: 11 additions & 6 deletions .github/workflows/cibuildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x86, amd64]
arch: [auto, aarch64]
exclude:
- os: ubuntu-latest
arch: x86
- os: windows-latest
arch: aarch64
- os: macos-latest
arch: x86
arch: aarch64

steps:
- name: Checkout repo
Expand All @@ -39,6 +39,10 @@ jobs:
with:
python-version: '3.7'

- name: Set up QEMU
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v1

- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master

Expand All @@ -54,7 +58,7 @@ jobs:
python -m pip install -r requirements-tests.txt

- name: Build wheels (Windows x86)
if: ${{ runner.os == 'Windows' && matrix.arch == 'x86'}}
if: ${{ runner.os == 'Windows' }}
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel
Expand All @@ -72,7 +76,7 @@ jobs:
arch: amd64

- name: Build wheels (Windows / amd64)
if: ${{ runner.os == 'Windows' && matrix.arch == 'amd64'}}
if: ${{ runner.os == 'Windows' }}
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel
Expand All @@ -93,6 +97,7 @@ jobs:
env:
CIBW_BUILD: 'cp37-* cp38-* cp39-*'
CIBW_SKIP: '*-manylinux*_i686'
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
CIBW_BEFORE_TEST: python -m pip install -r requirements-tests.txt
CIBW_TEST_COMMAND: python -m pytest {project}/tests
Expand Down