Skip to content

Commit 5dc15cf

Browse files
committed
Add building aarch64 wheels
- taken from python-gdcm - see #42
1 parent 692da5e commit 5dc15cf

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

.github/workflows/release-wheels.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
timeout-minutes: 10
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
submodules: true
1616

17-
- uses: actions/setup-python@v2
17+
- uses: actions/setup-python@v4
1818
name: Install Python
1919
with:
2020
python-version: '3.10'
@@ -25,7 +25,7 @@ jobs:
2525
python setup.py sdist
2626
2727
- name: Store artifacts
28-
uses: actions/upload-artifact@v2
28+
uses: actions/upload-artifact@v3
2929
with:
3030
name: wheels
3131
path: ./dist
@@ -97,6 +97,20 @@ jobs:
9797
platform_id: manylinux_x86_64
9898
manylinux_image: manylinux2014
9999

100+
# Linux aarch64
101+
- os: ubuntu-latest
102+
python: 37
103+
platform_id: manylinux_aarch64
104+
- os: ubuntu-latest
105+
python: 38
106+
platform_id: manylinux_aarch64
107+
- os: ubuntu-latest
108+
python: 39
109+
platform_id: manylinux_aarch64
110+
- os: ubuntu-latest
111+
python: 310
112+
platform_id: manylinux_aarch64
113+
100114
# MacOS x86_64
101115
- os: macos-latest
102116
python: 37
@@ -123,11 +137,17 @@ jobs:
123137
platform_id: macosx_arm64
124138

125139
steps:
126-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v3
127141
with:
128142
submodules: true
129143

130-
- uses: actions/setup-python@v2
144+
- name: Set up QEMU
145+
if: ${{ matrix.platform_id == 'manylinux_aarch64' }}
146+
uses: docker/setup-qemu-action@v2
147+
with:
148+
platforms: arm64
149+
150+
- uses: actions/setup-python@v4
131151
name: Install Python
132152
with:
133153
python-version: '3.9'
@@ -143,13 +163,14 @@ jobs:
143163
CIBW_ARCHS: all
144164
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
145165
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
166+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux_image }}
146167
CIBW_BUILD_VERBOSITY: 1
147168
run: |
148169
python --version
149170
python -m cibuildwheel --output-dir dist
150171
151172
- name: Store artifacts
152-
uses: actions/upload-artifact@v2
173+
uses: actions/upload-artifact@v3
153174
with:
154175
name: wheels
155176
path: ./dist
@@ -166,12 +187,12 @@ jobs:
166187

167188
steps:
168189
- name: Set up Python ${{ matrix.python-version }}
169-
uses: actions/setup-python@v2
190+
uses: actions/setup-python@v4
170191
with:
171192
python-version: ${{ matrix.python-version }}
172193

173194
- name: Download the wheels
174-
uses: actions/download-artifact@v2
195+
uses: actions/download-artifact@v3
175196
with:
176197
name: wheels
177198
path: dist/
@@ -213,7 +234,7 @@ jobs:
213234

214235
steps:
215236
- name: Download the wheels
216-
uses: actions/download-artifact@v2
237+
uses: actions/download-artifact@v3
217238
with:
218239
name: wheels
219240
path: dist/

0 commit comments

Comments
 (0)