Skip to content

Commit 8922a69

Browse files
committed
Build wheels for Linux and Windows on ARM
1 parent 7b5e289 commit 8922a69

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/buildwheels.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,31 @@ jobs:
3333
runs-on: ${{ matrix.os }}
3434
strategy:
3535
matrix:
36-
os: [ubuntu-latest, windows-latest, macos-latest]
36+
include:
37+
- os: ubuntu-20.04
38+
cibw_archs: "native"
39+
- os: ubuntu-20.04
40+
cibw_archs: "aarch64"
41+
- os: windows-latest
42+
cibw_archs: "native ARM64"
43+
- os: macos-latest
44+
cibw_archs: "x86_64 universal2 arm64"
3745

3846
steps:
3947
- uses: actions/checkout@v3
40-
41-
- name: Build wheels
42-
uses: pypa/cibuildwheel@v2.11.2
48+
- name: Set up QEMU
49+
if: matrix.cibw_archs == 'aarch64'
50+
uses: docker/setup-qemu-action@v2
4351
with:
44-
config-file: "{package}/pyproject-cibuildwheel.toml"
52+
platforms: arm64
53+
- name: Build wheels
54+
uses: pypa/[email protected]
55+
env:
56+
CIBW_TEST_REQUIRES: "hypothesis"
57+
CIBW_TEST_COMMAND: "python {project}/test.py && python {project}/cydoctest.py"
58+
CIBW_SKIP: "pp* cp36-*"
59+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
60+
CIBW_TEST_SKIP: "*-win_arm64"
4561

4662
- uses: actions/upload-artifact@v3
4763
with:

pyproject-cibuildwheel.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyroaring/version.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.0"
1+
__version__ = "0.4.1.dev2"

0 commit comments

Comments
 (0)