1
1
---
2
2
3
- name : Build wheel
3
+ name : >-
4
+ ❌
5
+ [DO NOT CLICK]
6
+ Reusable cibuildwheel
4
7
5
8
on : # yamllint disable-line rule:truthy
6
9
workflow_call :
7
10
inputs :
8
- dists-artifact-name :
9
- description : Workflow artifact name containing dists
10
- required : true
11
- type : string
12
11
check-name :
13
12
description : A custom name for the Checks API-reported status
14
13
required : false
15
14
type : string
15
+ dists-artifact-name :
16
+ description : >-
17
+ Workflow artifact name containing dists.
18
+ Defaults to "python-package-distributions".
19
+ default : python-package-distributions
20
+ required : false
21
+ type : string
16
22
environment-variables :
17
23
description : >-
18
24
A newline-delimited blob of text with environment variables
@@ -32,8 +38,10 @@ on: # yamllint disable-line rule:truthy
32
38
required : false
33
39
type : string
34
40
source-tarball-name :
35
- description : Sdist filename wildcard
36
- required : true
41
+ default : >-
42
+ *.tar.gz
43
+ description : Sdist filename wildcard. Defaults to "*.tar.gz".
44
+ required : false
37
45
type : string
38
46
timeout-minutes :
39
47
description : Deadline for the job to complete
@@ -87,11 +95,11 @@ jobs:
87
95
print(f'hash={hash}', file=outputs_file)
88
96
shell : python
89
97
90
- - name : Retrieve the project source from an sdist inside the GHA artifact
91
- uses : re-actors/checkout-python-sdist@release/v2
98
+ - name : Download the source distribution
99
+ uses : actions/download-artifact@v4
92
100
with :
93
- source-tarball- name : ${{ inputs.source-tarball -name }}
94
- workflow-artifact-name : ${{ inputs.dists-artifact-name }}
101
+ name : ${{ inputs.dists-artifact -name }}
102
+ path : dist/
95
103
96
104
- name : Set up QEMU
97
105
if : inputs.qemu
@@ -101,6 +109,9 @@ jobs:
101
109
102
110
- name : Build wheels
103
111
112
+ with :
113
+ package-dir : >- # not necessarily a dir, we pass an acceptable sdist
114
+ dist/${{ inputs.source-tarball-name }}
104
115
105
116
- name : Upload built artifacts for testing and publishing
106
117
uses : actions/upload-artifact@v4
0 commit comments