Skip to content

Conversation

bnbarham
Copy link
Contributor

Windows does not stop scripts when native commands exit with non-zero. Instead, their exit status has to be checked manually. This can be done through an Invoke-Program function that is added to the script running windows_build_command, which also previously prefixed the given command. This is changing in
swiftlang/github-workflows#154 since it doesn't help with multi-line commands - update our modified windows_build_command to use Invoke-Program instead.

Windows does not stop scripts when native commands exit with non-zero.
Instead, their exit status has to be checked manually. This can be done
through an `Invoke-Program` function that is added to the script running
`windows_build_command`, which also previously prefixed the given
command. This is changing in
swiftlang/github-workflows#154 since it doesn't
help with multi-line commands - update our modified
`windows_build_command` to use `Invoke-Program` instead.
@bnbarham bnbarham merged commit 8a989fa into swiftlang:main Aug 25, 2025
24 checks passed
@bnbarham bnbarham deleted the invoke-windows branch August 25, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants