Skip to content

Commit 4287773

Browse files
committed
Add platform-specific wheel validation steps for CI builds
1 parent cb2db86 commit 4287773

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/CI.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)