File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,13 +68,23 @@ jobs:
6868 with :
6969 args : --release --out dist --interpreter python
7070 - name : Validate wheels after building
71+ shell : pwsh
7172 run : |
72- for file in dist/*.whl; do
73- echo "Checking $file"
74- python -m zipfile -t "$file" || { echo "Invalid wheel: $file"; exit 1; }
75- done
73+ Get-ChildItem -Path dist -Filter *.whl | ForEach-Object {
74+ Write-Host "Checking $($_.FullName)"
75+ python -m zipfile -t $_.FullName
76+ if ($LASTEXITCODE -ne 0) {
77+ Write-Error "Invalid wheel: $($_.FullName)"
78+ exit 1
79+ }
80+ }
7681 - name : Print checksums
77- run : sha256sum dist/*.whl
82+ shell : cmd
83+ run : |
84+ for %f in (dist\*.whl) do (
85+ echo Checksum for %f:
86+ CertUtil -hashfile %f SHA256
87+ )
7888 - name : Upload wheels
7989 uses : actions/upload-artifact@v4
8090 with :
@@ -106,7 +116,7 @@ jobs:
106116 python -m zipfile -t "$file" || { echo "Invalid wheel: $file"; exit 1; }
107117 done
108118 - name : Print checksums
109- run : sha256sum dist/*.whl
119+ run : shasum -a 256 dist/*.whl
110120 - name : Upload wheels
111121 uses : actions/upload-artifact@v4
112122 with :
You can’t perform that action at this time.
0 commit comments