Skip to content

Commit 0d8fbad

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 bbe6fbe commit 0d8fbad

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,24 @@ 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="
43+
- "--repo_env=SDKROOT=C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Platforms\\%SWIFT_VERSION%\\Windows.platform\\Developer\\SDKs\\Windows.sdk"
44+
- "--repo_env=Path=C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin;C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Runtimes\\0.0.0\\usr\\bin;%Path%"
3945
build_targets:
4046
- "//tools/..."
47+
test_flags:
48+
- "--compiler=clang-cl"
49+
test_targets:
50+
- "//examples/..."
51+
- "-//examples/apple/..."
52+
- "-//examples/xplatform/grpc/..." # TODO: Fix gRPC on Windows
4153

4254
tasks:
4355
macos_6:
@@ -117,6 +129,10 @@ tasks:
117129
windows_last_green:
118130
name: "Last Green Bazel"
119131
bazel: last_green
132+
batch_commands:
133+
- echo --- Downloading and installing Swift %SWIFT_VERSION%
134+
- 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
135+
- PowerShell Start-Process -FilePath ${env:TEMP}\installer.exe -ArgumentList(\"/install\", \"/passive\", \"/norestart\", \"/log log.txt\") -Wait -PassThru -Verb RunAs
120136
<<: *windows_common
121137

122138
doc_tests:

0 commit comments

Comments
 (0)