File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,5 +26,11 @@ build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr
2626# Important: this flag ensures that we remain compliant with the C++ layering
2727# check.
2828build --features=layering_check
29+ common --enable_platform_specific_config
30+
31+ build:windows --cxxopt=/std:c++17
32+ build:windows --host_cxxopt=/std:c++17
2933
3034common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
35+ # Use clang-cl by default on Windows (see https://github.com/protocolbuffers/protobuf/issues/20085).
36+ build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl --extra_execution_platforms=//build_defs:x64_windows-clang-cl --host_platform=//build_defs:x64_windows-clang-cl
Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ jobs:
6868# - ppc64
6969 include :
7070# to ensure backwards compatibility as long as possible, use earliest versions of OSs available on Github Actions
71- - os : windows-2019
71+ - os : windows-2022
7272 cpu : x64_windows
7373 bazel_target : dist_zip
74- - os : windows-2019
74+ - os : windows-2022
7575 cpu : x64_x86_windows
7676 bazel_target : dist_zip
7777# disabling Mac OS releases for now since they are working through existing build process
8888 with :
8989 name : js
9090
91- - uses : bazel-contrib/setup-bazel@0.8.5
91+ - uses : bazel-contrib/setup-bazel@0.15.0
9292 with :
9393 token : ${{ secrets.GITHUB_TOKEN }}
9494
You can’t perform that action at this time.
0 commit comments