End the build step with exit 0
Windows discovery tool / windows (push) Failing after 1m18s

The deliberate no-argument smoke run exits 1 and PowerShell passes the last
native exit code to the runner: run 414 compiled, passed its checks and was
still marked failed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 11:05:44 +00:00
co-authored by Claude Sonnet 5.5
parent e797da7c89
commit fe2bfc7d52
+6
View File
@@ -159,6 +159,12 @@ jobs:
Set-Content -Path dist\SHA256.txt -Value "$hash discover_printers.exe" -Encoding ASCII Set-Content -Path dist\SHA256.txt -Value "$hash discover_printers.exe" -Encoding ASCII
Write-Host "sha256 $hash" Write-Host "sha256 $hash"
# The usage run above exits 1 on purpose, and PowerShell hands the
# last native command's exit code to the runner when a script ends -
# so without this a build that passed every check was reported
# failed (run 414).
exit 0
- name: Upload the executable - name: Upload the executable
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: