Skip to content

Commit fe55e35

Browse files
committed
Feed sdist into cibuildwheel invocations
This will excersise building wheels entirely from source tarballs.
1 parent c5268b7 commit fe55e35

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/reusable-cibuildwheel.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ jobs:
9595
print(f'hash={hash}', file=outputs_file)
9696
shell: python
9797

98-
- name: Retrieve the project source from an sdist inside the GHA artifact
99-
uses: re-actors/checkout-python-sdist@release/v2
98+
- name: Download the source distribution
99+
uses: actions/download-artifact@v4
100100
with:
101-
source-tarball-name: ${{ inputs.source-tarball-name }}
102-
workflow-artifact-name: ${{ inputs.dists-artifact-name }}
101+
name: ${{ inputs.dists-artifact-name }}
102+
path: dist/
103103

104104
- name: Set up QEMU
105105
if: inputs.qemu
@@ -109,6 +109,9 @@ jobs:
109109

110110
- name: Build wheels
111111
uses: pypa/[email protected]
112+
with:
113+
package-dir: >- # not necessarily a dir, we pass an acceptable sdist
114+
dist/${{ inputs.source-tarball-name }}
112115
113116
- name: Upload built artifacts for testing and publishing
114117
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)