Skip to content

Commit 67a8cb2

Browse files
committed
Replace reusable-cibuildwheel tag w/check-name
1 parent 9ed7eb1 commit 67a8cb2

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
@@ -139,7 +139,8 @@ jobs:
139139
}}
140140
uses: ./.github/workflows/reusable-cibuildwheel.yml
141141
with:
142-
tag: ${{ matrix.tag }}
142+
check-name: >-
143+
Build ${{ matrix.tag }} wheels on ${{ matrix.runner-vm-os }}
143144
wheel-tags-to-skip: >-
144145
${{
145146
(github.event_name != 'push' || !contains(github.ref, 'refs/tags/'))
@@ -559,8 +560,9 @@ jobs:
559560
- musllinux
560561
uses: ./.github/workflows/reusable-cibuildwheel.yml
561562
with:
563+
check-name: >-
564+
Build ${{ matrix.tag }} wheels for ${{ matrix.qemu }}
562565
qemu: ${{ matrix.qemu }}
563-
tag: ${{ matrix.tag }}
564566
wheel-tags-to-skip: >-
565567
${{
566568
(matrix.tag == 'musllinux')

.github/workflows/reusable-cibuildwheel.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ on: # yamllint disable-line rule:truthy
99
description: Workflow artifact name containing dists
1010
required: true
1111
type: string
12-
qemu:
13-
description: Emulated QEMU architecture
14-
default: ''
12+
check-name:
13+
description: A custom name for the Checks API-reported status
1514
required: false
1615
type: string
17-
tag:
18-
description: Build platform tag wheels
16+
qemu:
17+
description: Emulated QEMU architecture
1918
default: ''
2019
required: false
2120
type: string
@@ -43,7 +42,15 @@ jobs:
4342

4443
build-wheel:
4544
name: >-
46-
Build ${{ inputs.tag }} wheels on ${{ inputs.runner-vm-os }} ${{ inputs.qemu }}
45+
${{
46+
inputs.check-name
47+
&& inputs.check-name
48+
|| format(
49+
'Build wheels on {0} {1}',
50+
inputs.runner-vm-os,
51+
inputs.qemu
52+
)
53+
}}
4754
runs-on: ${{ inputs.runner-vm-os }}
4855
timeout-minutes: ${{ inputs.qemu && 120 || 15 }}
4956
steps:
@@ -103,7 +110,6 @@ jobs:
103110
name: ${{ inputs.dists-artifact-name }}-
104111
${{ inputs.runner-vm-os }}-
105112
${{ inputs.qemu }}-
106-
${{ inputs.tag }}-
107113
${{ steps.gha-artifact-name.outputs.hash }}
108114
path: ./wheelhouse/*.whl
109115

0 commit comments

Comments
 (0)