Skip to content

Commit 5dea424

Browse files
authoredSep 22, 2022
Merge pull request #10 from nakata5321/master
aarch64 wheels for manylinux
2 parents 9af9c22 + 4f4ad32 commit 5dea424

File tree

1 file changed

+74
-10
lines changed

1 file changed

+74
-10
lines changed
 

‎.github/workflows/pypi.yml

+74-10
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
CIBW_ARCHS_LINUX: "auto64"
146146
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
147147
CIBW_BUILD: "*-musllinux_x86_64"
148-
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"
148+
CIBW_SKIP: "cp27-* cp34-* cp35-*"
149149

150150
steps:
151151
- uses: actions/checkout@v3
@@ -163,6 +163,74 @@ jobs:
163163
name: wheels
164164
path: dist
165165

166+
build_wheels_python36:
167+
name: Build wheels on aarch64 for python3.6
168+
runs-on: ubuntu-latest
169+
170+
env:
171+
CIBW_BUILD_VERBOSITY: 1
172+
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
173+
CIBW_ARCHS_LINUX: "aarch64"
174+
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
175+
CIBW_BUILD: "cp36-musllinux_aarch64 cp36-manylinux_aarch64"
176+
177+
steps:
178+
- uses: actions/checkout@v3
179+
180+
- name: add additional package
181+
run: sudo apt-get install patchelf
182+
183+
- name: Set up QEMU
184+
uses: docker/setup-qemu-action@v2
185+
with:
186+
platforms: arm64
187+
188+
- name: Build wheels
189+
uses: pypa/cibuildwheel@v2.9.0
190+
with:
191+
output-dir: dist
192+
193+
194+
- uses: actions/upload-artifact@v3
195+
with:
196+
name: wheels
197+
path: dist
198+
199+
200+
build_wheels_python37:
201+
name: Build wheels on aarch64 for python3.7
202+
runs-on: ubuntu-latest
203+
204+
env:
205+
CIBW_BUILD_VERBOSITY: 1
206+
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
207+
CIBW_ARCHS_LINUX: "aarch64"
208+
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
209+
CIBW_BUILD: "cp37-musllinux_aarch64 cp37-manylinux_aarch64"
210+
211+
steps:
212+
- uses: actions/checkout@v3
213+
214+
- name: add additional package
215+
run: sudo apt-get install patchelf
216+
217+
- name: Set up QEMU
218+
uses: docker/setup-qemu-action@v2
219+
with:
220+
platforms: arm64
221+
222+
- name: Build wheels
223+
uses: pypa/cibuildwheel@v2.9.0
224+
with:
225+
output-dir: dist
226+
227+
228+
- uses: actions/upload-artifact@v3
229+
with:
230+
name: wheels
231+
path: dist
232+
233+
166234
build_wheels_python38:
167235
name: Build wheels on aarch64 for python3.8
168236
runs-on: ubuntu-latest
@@ -172,8 +240,7 @@ jobs:
172240
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
173241
CIBW_ARCHS_LINUX: "aarch64"
174242
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
175-
CIBW_BUILD: "cp38-musllinux_aarch64"
176-
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"
243+
CIBW_BUILD: "cp38-musllinux_aarch64 cp38-manylinux_aarch64"
177244

178245
steps:
179246
- uses: actions/checkout@v3
@@ -206,8 +273,7 @@ jobs:
206273
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
207274
CIBW_ARCHS_LINUX: "aarch64"
208275
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
209-
CIBW_BUILD: "cp39-musllinux_aarch64"
210-
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"
276+
CIBW_BUILD: "cp39-musllinux_aarch64 cp39-manylinux_aarch64"
211277

212278
steps:
213279
- uses: actions/checkout@v3
@@ -240,8 +306,7 @@ jobs:
240306
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
241307
CIBW_ARCHS_LINUX: "aarch64"
242308
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
243-
CIBW_BUILD: "cp310-musllinux_aarch64"
244-
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"
309+
CIBW_BUILD: "cp310-musllinux_aarch64 cp310-manylinux_aarch64"
245310

246311
steps:
247312
- uses: actions/checkout@v3
@@ -274,8 +339,7 @@ jobs:
274339
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
275340
CIBW_ARCHS_LINUX: "aarch64"
276341
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
277-
CIBW_BUILD: "cp311-musllinux_aarch64"
278-
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"
342+
CIBW_BUILD: "cp311-musllinux_aarch64 cp311-manylinux_aarch64"
279343

280344
steps:
281345
- uses: actions/checkout@v3
@@ -303,7 +367,7 @@ jobs:
303367
name: Release
304368
runs-on: ubuntu-latest
305369
if: "startsWith(github.ref, 'refs/tags/')"
306-
needs: [ macos, windows, linux, build_wheels_x86_64, build_wheels_python38, build_wheels_python39, build_wheels_python310, build_wheels_python311]
370+
needs: [ macos, windows, linux, build_wheels_x86_64, build_wheels_python36, build_wheels_python37, build_wheels_python38, build_wheels_python39, build_wheels_python310, build_wheels_python311]
307371
steps:
308372
- uses: actions/download-artifact@v2
309373
with:

0 commit comments

Comments
 (0)
Please sign in to comment.