Skip to content

Commit ec6385c

Browse files
committed
Use Invoke-Program for the Windows build command
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.
1 parent 3ca7ecd commit ec6385c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
linux_build_command: "swift build"
1313
linux_exclude_swift_versions: '[{"swift_version": "5.8"}, {"swift_version": "5.9"}, {"swift_version": "5.10"}]'
14-
windows_build_command: "swift build"
14+
windows_build_command: "Invoke-Program swift build"
1515
windows_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]'
1616
enable_macos_checks: true
1717
macos_xcode_versions: '["16.3"]'

0 commit comments

Comments
 (0)