Skip to content

Commit 26b27de

Browse files
committed
CI: complete the Windows CI coverage
Extend the Windows CI to include the tests as well. This will mostly complete the Windows support (the remaining pieces remain in supporting the Windows ARM64 build host).
1 parent 9d61ee4 commit 26b27de

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,22 @@ x_defaults:
3232
- "-//examples/apple/..."
3333
windows_common: &windows_common
3434
platform: windows
35+
environment:
36+
SWIFT_VERSION: 0.0.0
37+
PATH: "C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Toolchains\\%SWIFT_VERSION%+Asserts\\usr\\bin;C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Runtimes\\%SWIFT_VERSION%\\usr\\bin;%Path%"
38+
SDKROOT: "C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Platforms\\%SWIFT_VERSION%\\Windows.platform\\Developer\\SDKs\\Windows.sdk"
3539
build_flags:
3640
# Override 'sandboxed' strategy set in .bazelrc because it's not
3741
# available on Windows
3842
- "--strategy=SwiftCompile="
3943
build_targets:
4044
- "//tools/..."
45+
test_flags:
46+
- "--compiler=clang-cl"
47+
test_targets:
48+
- "//examples/..."
49+
- "-//examples/apple/..."
50+
- "-//examples/xplatform/grpc/..." # TODO: Fix gRPC on Windows
4151

4252
tasks:
4353
macos_6:
@@ -117,6 +127,10 @@ tasks:
117127
windows_last_green:
118128
name: "Last Green Bazel"
119129
bazel: last_green
130+
batch_commands:
131+
- echo --- Downloading and installing Swift %SWIFT_VERSION%
132+
- curl.exe -L https://download.swift.org/swift-5.10-branch/windows10/swift-5.10-DEVELOPMENT-SNAPSHOT-2024-01-18-a/swift-5.10-DEVELOPMENT-SNAPSHOT-2024-01-18-a-windows10.exe -o %TEMP%\installer.exe
133+
- PowerShell Start-Process -FilePath ${env:TEMP}\installer.exe -ArgumentList(\"/install\", \"/passive\", \"/norestart\", \"/log log.txt\") -Wait -PassThru -Verb RunAs
120134
<<: *windows_common
121135

122136
doc_tests:

0 commit comments

Comments
 (0)