Skip to content

Commit

Permalink
CI: complete the Windows CI coverage
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
compnerd committed Feb 23, 2024
1 parent bbe6fbe commit 0d8fbad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@ x_defaults:
- "-//examples/apple/..."
windows_common: &windows_common
platform: windows
environment:
SWIFT_VERSION: 0.0.0
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%"
SDKROOT: "C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Platforms\\%SWIFT_VERSION%\\Windows.platform\\Developer\\SDKs\\Windows.sdk"
build_flags:
# Override 'sandboxed' strategy set in .bazelrc because it's not
# available on Windows
- "--strategy=SwiftCompile="
- "--repo_env=SDKROOT=C:\\Users\\b\\AppData\\Local\\Programs\\Swift\\Platforms\\%SWIFT_VERSION%\\Windows.platform\\Developer\\SDKs\\Windows.sdk"
- "--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%"
build_targets:
- "//tools/..."
test_flags:
- "--compiler=clang-cl"
test_targets:
- "//examples/..."
- "-//examples/apple/..."
- "-//examples/xplatform/grpc/..." # TODO: Fix gRPC on Windows

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

doc_tests:
Expand Down

0 comments on commit 0d8fbad

Please sign in to comment.