Skip to content

Commit 44bac8b

Browse files
committed
Replace reusable-cibuildwheel tag w/check-name
1 parent 5bdeb2c commit 44bac8b

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
}}
155155
uses: ./.github/workflows/reusable-cibuildwheel.yml
156156
with:
157-
tag: ${{ matrix.tag }}
157+
check-name: >-
158+
Build ${{ matrix.tag }} wheels on ${{ matrix.runner-vm-os }}
158159
wheel-tags-to-skip: >-
159160
${{
160161
(github.event_name != 'push' || !contains(github.ref, 'refs/tags/'))
@@ -414,8 +415,9 @@ jobs:
414415
- musllinux
415416
uses: ./.github/workflows/reusable-cibuildwheel.yml
416417
with:
418+
check-name: >-
419+
Build ${{ matrix.tag }} wheels for ${{ matrix.qemu }}
417420
qemu: ${{ matrix.qemu }}
418-
tag: ${{ matrix.tag }}
419421
wheel-tags-to-skip: >-
420422
${{
421423
(matrix.tag == 'musllinux')

.github/workflows/reusable-cibuildwheel.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on: # yamllint disable-line rule:truthy
99
description: Workflow artifact name containing dists
1010
required: true
1111
type: string
12+
check-name:
13+
description: A custom name for the Checks API-reported status
14+
required: false
15+
type: string
1216
cython-tracing:
1317
description: Whether to build Cython modules with line tracing
1418
default: '0'
@@ -19,11 +23,6 @@ on: # yamllint disable-line rule:truthy
1923
default: ''
2024
required: false
2125
type: string
22-
tag:
23-
description: Build platform tag wheels
24-
default: ''
25-
required: false
26-
type: string
2726
runner-vm-os:
2827
description: VM OS to use
2928
default: ubuntu-latest
@@ -48,7 +47,15 @@ jobs:
4847

4948
build-wheel:
5049
name: >-
51-
Build ${{ inputs.tag }} wheels on ${{ inputs.runner-vm-os }} ${{ inputs.qemu }}
50+
${{
51+
inputs.check-name
52+
&& inputs.check-name
53+
|| format(
54+
'Build wheels on {0} {1}',
55+
inputs.runner-vm-os,
56+
inputs.qemu
57+
)
58+
}}
5259
runs-on: ${{ inputs.runner-vm-os }}
5360
timeout-minutes: ${{ inputs.qemu && 25 || 11 }}
5461
steps:
@@ -111,7 +118,6 @@ jobs:
111118
name: ${{ inputs.dists-artifact-name }}-
112119
${{ inputs.runner-vm-os }}-
113120
${{ inputs.qemu }}-
114-
${{ inputs.tag }}-
115121
${{ steps.gha-artifact-name.outputs.hash }}
116122
path: ./wheelhouse/*.whl
117123

0 commit comments

Comments
 (0)