3535 with :
3636 python-version : " 3.x"
3737
38- - name : Set up QEMU
39- if : runner.os == 'Linux'
40- uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
41- with :
42- platforms : arm64
43-
4438 - name : Build for Windows
4539 if : runner.os == 'Windows'
4640 run : |
@@ -88,31 +82,34 @@ jobs:
8882 uses : tj-actions/glob@2deae40528141fc53131606d56b4e4ce2a486b29 # v22.0.2
8983 id : sdist
9084 with :
91- files : ./ python/dist/*.tar.gz
85+ files : python/dist/*.tar.gz
9286
9387 - name : Build wheel from sdist
94- run : python -m pip wheel "${{ steps.sdist.outputs.paths }}" --verbose
88+ run : python -m pip wheel python/dist/*.tar.gz --verbose
9589
9690 - name : Copy sdist
9791 working-directory : python
9892 if : runner.os == 'macOS'
99- run : cp -f dist/*.tar.gz wheelhouse/
93+ run : |
94+ mkdir -p wheelhouse
95+ cp -f dist/*.tar.gz wheelhouse/
96+
97+ - name : Validate sdist archive
98+ run : twine check --strict python/wheelhouse/*.whl
10099
101100 - name : Upload artifact
102101 uses : actions/upload-artifact@v4
103102 with :
104103 name : artifacts-${{ matrix.os }}-${{ matrix.arch }}
105- path : |
106- ./python/wheelhouse/*.whl
107- ./python/wheelhouse/*.tar.gz
104+ path : python/wheelhouse/*
108105 overwrite : true
109106
110107 - name : Upload wheel release
111108 if : startsWith(github.ref, 'refs/tags/')
112109 uses : svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2.11.2
113110 with :
114111 repo_token : ${{ secrets.GITHUB_TOKEN }}
115- file : ./ python/wheelhouse/*
112+ file : python/wheelhouse/*
116113 tag : ${{ github.ref }}
117114 overwrite : true
118115 prerelease : true
@@ -121,17 +118,17 @@ jobs:
121118 - name : Generate SLSA subjects - Macos
122119 id : hash-macos
123120 if : runner.os == 'macOS'
124- run : echo "digests=$(shasum -a 256 ./ python/wheelhouse/* | base64)" >> $GITHUB_OUTPUT
121+ run : echo "digests=$(shasum -a 256 python/wheelhouse/* | base64)" >> $GITHUB_OUTPUT
125122
126123 - name : Generate SLSA subjects - Linux
127124 id : hash-linux
128125 if : runner.os == 'Linux'
129- run : echo "digests=$(sha256sum ./ python/wheelhouse/* | base64 -w0)" >> $GITHUB_OUTPUT
126+ run : echo "digests=$(sha256sum python/wheelhouse/* | base64 -w0)" >> $GITHUB_OUTPUT
130127
131128 - name : Generate SLSA subjects - Windows
132129 id : hash-windows
133130 if : runner.os == 'Windows'
134- run : echo "digests=$(sha256sum ./ python/wheelhouse/* | base64 -w0)" >> $GITHUB_OUTPUT
131+ run : echo "digests=$(sha256sum python/wheelhouse/* | base64 -w0)" >> $GITHUB_OUTPUT
135132
136133 gather-digests :
137134 needs : [build_wheels]
0 commit comments