Skip to content

Commit 0b39d2b

Browse files
committed
Replace reusable-cibuildwheel tag w/check-name
1 parent beb5f67 commit 0b39d2b

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
@@ -156,7 +156,8 @@ jobs:
156156
}}
157157
uses: ./.github/workflows/reusable-cibuildwheel.yml
158158
with:
159-
tag: ${{ matrix.tag }}
159+
check-name: >-
160+
Build ${{ matrix.tag }} wheels on ${{ matrix.runner-vm-os }}
160161
wheel-tags-to-skip: >-
161162
${{
162163
(github.event_name != 'push' || !contains(github.ref, 'refs/tags/'))
@@ -510,8 +511,9 @@ jobs:
510511
- musllinux
511512
uses: ./.github/workflows/reusable-cibuildwheel.yml
512513
with:
514+
check-name: >-
515+
Build ${{ matrix.tag }} wheels for ${{ matrix.qemu }}
513516
qemu: ${{ matrix.qemu }}
514-
tag: ${{ matrix.tag }}
515517
wheel-tags-to-skip: >-
516518
${{
517519
(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 && 60 || 20 }}
5461
steps:
@@ -115,7 +122,6 @@ jobs:
115122
name: ${{ inputs.dists-artifact-name }}-
116123
${{ inputs.runner-vm-os }}-
117124
${{ inputs.qemu }}-
118-
${{ inputs.tag }}-
119125
${{ steps.gha-artifact-name.outputs.hash }}
120126
path: ./wheelhouse/*.whl
121127

0 commit comments

Comments
 (0)