Skip to content

Commit 58aef99

Browse files
authored
Start building wheels on armv7l (#642)
1 parent d8e4a82 commit 58aef99

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,24 @@ jobs:
138138
- ubuntu
139139
- windows
140140
- macos
141+
tag:
142+
- ''
143+
- 'musllinux'
144+
exclude:
145+
- os: windows
146+
tag: 'musllinux'
147+
- os: macos
148+
tag: 'musllinux'
149+
- os: ubuntu
150+
tag: >-
151+
${{
152+
(github.event_name != 'push' || github.ref_type != 'tag')
153+
&& 'musllinux' || 'none'
154+
}}
141155
uses: ./.github/workflows/reusable-build-wheel.yml
142156
with:
143157
os: ${{ matrix.os }}
158+
tag: ${{ matrix.tag }}
144159
wheel-tags-to-skip: >-
145160
${{
146161
(github.event_name != 'push' || !contains(github.ref, 'refs/tags/'))
@@ -150,7 +165,8 @@ jobs:
150165
*-win32
151166
*_arm64
152167
pp*'
153-
|| ''
168+
|| (matrix.tag == 'musllinux') && '*-manylinux_* pp*'
169+
|| '*-musllinux_* pp*'
154170
}}
155171
source-tarball-name: >-
156172
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
@@ -393,9 +409,20 @@ jobs:
393409
- aarch64
394410
- ppc64le
395411
- s390x
412+
- armv7l
413+
tag:
414+
- ''
415+
- musllinux
396416
uses: ./.github/workflows/reusable-build-wheel.yml
397417
with:
398418
qemu: ${{ matrix.qemu }}
419+
tag: ${{ matrix.tag }}
420+
wheel-tags-to-skip: >-
421+
${{
422+
(matrix.tag == 'musllinux')
423+
&& '*-manylinux_* pp*'
424+
|| '*-musllinux_* pp*'
425+
}}
399426
source-tarball-name: >-
400427
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
401428
dists-artifact-name: ${{ needs.pre-setup.outputs.dists-artifact-name }}

.github/workflows/reusable-build-wheel.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
default: ''
2525
required: false
2626
type: string
27+
tag:
28+
description: Build platform tag wheels
29+
default: ''
30+
required: false
31+
type: string
2732
source-tarball-name:
2833
description: Sdist filename wildcard
2934
required: true
@@ -42,10 +47,25 @@ env:
4247
jobs:
4348

4449
build-wheel:
45-
name: Build wheels on ${{ inputs.os }} ${{ inputs.qemu }}
50+
name: >-
51+
Build ${{ inputs.tag }} wheels on ${{ inputs.os }} ${{ inputs.qemu }}
4652
runs-on: ${{ inputs.os }}-latest
4753
timeout-minutes: ${{ inputs.qemu && 25 || 11 }}
4854
steps:
55+
- name: Compute GHA artifact name ending
56+
id: gha-artifact-name
57+
run: |
58+
from hashlib import sha512
59+
from os import environ
60+
from pathlib import Path
61+
FILE_APPEND_MODE = 'a'
62+
inputs_json_str = """${{ toJSON(inputs) }}"""
63+
hash = sha512(inputs_json_str.encode()).hexdigest()
64+
with Path(environ['GITHUB_OUTPUT']).open(
65+
mode=FILE_APPEND_MODE,
66+
) as outputs_file:
67+
print(f'hash={hash}', file=outputs_file)
68+
shell: python
4969
- name: Retrieve the project source from an sdist inside the GHA artifact
5070
uses: re-actors/checkout-python-sdist@release/v2
5171
with:
@@ -86,6 +106,8 @@ jobs:
86106
name: ${{ inputs.dists-artifact-name }}-
87107
${{ inputs.os }}-
88108
${{ inputs.qemu }}-
109+
${{ inputs.tag }}-
110+
${{ steps.gha-artifact-name.outputs.hash }}
89111
path: ./wheelhouse/*.whl
90112

91113
...

CHANGES/642.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Started building armv7l wheels -- by :user:`bdraco`.

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ app
1212
apps
1313
app’s
1414
arg
15+
armv
1516
Arsenic
1617
async
1718
asyncio

0 commit comments

Comments
 (0)