Skip to content

Commit 894ce2d

Browse files
authored
Merge pull request #10 from laggykiller/master
arm64 wheels for Windows and Linux
2 parents 1c6ffa5 + 97d7b02 commit 894ce2d

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

.github/workflows/python-packages.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,54 @@ jobs:
4242

4343
build_wheels:
4444

45-
name: "Build wheels on ${{ matrix.os }}"
45+
name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}"
4646
runs-on: ${{ matrix.os }}
4747

4848
strategy:
4949
matrix:
50-
os:
51-
- ubuntu-22.04
52-
- windows-2019
53-
- macos-11
50+
include:
51+
- os: windows-2019
52+
cibw_archs: AMD64
53+
- os: windows-2019
54+
cibw_archs: ARM64
55+
- os: windows-2019
56+
cibw_archs: x86
57+
- os: macos-11
58+
cibw_archs: x86_64
59+
- os: macos-11
60+
cibw_archs: arm64
61+
- os: macos-11
62+
cibw_archs: universal2
63+
- os: ubuntu-22.04
64+
cibw_archs: x86_64
65+
- os: ubuntu-22.04
66+
cibw_archs: i686
67+
- os: ubuntu-22.04
68+
cibw_archs: aarch64
5469

5570
steps:
5671

5772
- name: "Checkout the repository"
5873
uses: actions/checkout@v4
5974
with:
6075
submodules: true
76+
77+
- name: Set up QEMU
78+
if: runner.os == 'Linux'
79+
uses: docker/setup-qemu-action@v2
80+
with:
81+
platforms: all
6182

6283
- name: "Build wheels"
63-
uses: pypa/[email protected].4
84+
uses: pypa/[email protected].5
6485
env:
65-
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
86+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
6687
PIP_USE_PEP517: 1
6788

6889
- name: "Upload artifacts"
6990
uses: actions/upload-artifact@v4
7091
with:
71-
name: wheels-${{ matrix.os }}
92+
name: wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
7293
path: ./wheelhouse/*.whl
7394
retention-days: 7
7495

0 commit comments

Comments
 (0)