File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 41
41
fi
42
42
43
43
# IMPORTANT: if you update the version here, other parts of infrastructure might needs updating as well
44
- # (e.g. win RBE builds, sanity checks, bazel toolchains etc.)
44
+ # (e.g. sanity checks, bazel toolchains etc.)
45
45
VERSION=${OVERRIDE_BAZEL_VERSION:- 4.2.1}
46
46
echo " INFO: Running bazel wrapper (see //tools/bazel for details), bazel version $VERSION will be used instead of system-wide bazel installation." >&2
47
47
@@ -62,6 +62,9 @@ case $(uname -sm) in
62
62
" Darwin x86_64" )
63
63
suffix=darwin-x86_64
64
64
;;
65
+ " MINGW" * | " MSYS_NT" * )
66
+ suffix=windows-x86_64.exe
67
+ ;;
65
68
* )
66
69
echo " Unsupported architecture: $( uname -sm) " >&2
67
70
exit 1
Original file line number Diff line number Diff line change @@ -26,15 +26,17 @@ cd github/grpc
26
26
27
27
call tools/internal_ci/helper_scripts/prepare_build_windows.bat || exit /b 1
28
28
29
- @ rem TODO(jtattermusch): make this generate less output
30
- @ rem TODO(jtattermusch): use tools/bazel script to keep the versions in sync
31
- choco install bazel -y --version 4.2.1 --limit-output || exit /b 1
29
+ @ rem Install bazel
30
+ @ rem Side effect of the tools/bazel script is that it downloads the correct version of bazel binary.
31
+ mkdir C:\bazel
32
+ bash -c " tools/bazel --version && cp tools/bazel-*.exe /c/bazel/bazel.exe"
33
+ set PATH = C:\bazel;%PATH%
34
+ bazel --version
32
35
33
36
@ rem Generate a random UUID and store in "bazel_invocation_ids" artifact file
34
37
powershell -Command " [guid]::NewGuid().ToString()" > %KOKORO_ARTIFACTS_DIR% /bazel_invocation_ids
35
38
set /p BAZEL_INVOCATION_ID = < %KOKORO_ARTIFACTS_DIR% /bazel_invocation_ids
36
39
37
- @ rem TODO(jtattermusch): windows RBE should be able to use the same credentials as Linux RBE.
38
40
bazel --bazelrc=tools/remote_build/windows.bazelrc --output_user_root=T:\_bazel_output test --invocation_id=" %BAZEL_INVOCATION_ID% " %BAZEL_FLAGS% --workspace_status_command=tools/remote_build/workspace_status_kokoro.bat //test/...
39
41
set BAZEL_EXITCODE = %errorlevel%
40
42
You can’t perform that action at this time.
0 commit comments