File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 58
58
${{ matrix.bazel_cmd }} --crosstool_top=//toolchain:clang_suite --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --@rules_rust//rust/settings:experimental_use_cc_common_link=True
59
59
${{ matrix.targets }} ${{ matrix.config.flags }}
60
60
61
+ windows :
62
+ strategy :
63
+ fail-fast : false # Don't cancel all jobs if one fails.
64
+ name : Windows Cargo
65
+ runs-on : windows-2022
66
+ steps :
67
+ - name : Checkout pending changes
68
+ uses : protocolbuffers/protobuf-ci/checkout@v4
69
+ with :
70
+ ref : ${{ inputs.safe-checkout }}
71
+ - name : Install Rust
72
+ shell : bash
73
+ run : rustup default nightly-2025-08-07
74
+ - name : Run tests
75
+ uses : protocolbuffers/protobuf-ci/bazel@v4
76
+ with :
77
+ credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
78
+ bazel : run //rust/release_crates:cargo_test
79
+ bazel-cache : windows-cargo
80
+ version : 8.0.1
Original file line number Diff line number Diff line change 7
7
8
8
# --- begin runfiles.bash initialization ---
9
9
# Copy-pasted from Bazel's Bash runfiles library (tools/bash/runfiles/runfiles.bash).
10
- set -euo pipefail
10
+ set -euxo pipefail
11
11
if [[ ! -d " ${RUNFILES_DIR:-/ dev/ null} " && ! -f " ${RUNFILES_MANIFEST_FILE:-/ dev/ null} " ]]; then
12
12
if [[ -f " $0 .runfiles_manifest" ]]; then
13
13
export RUNFILES_MANIFEST_FILE=" $0 .runfiles_manifest"
@@ -40,7 +40,13 @@ mkdir $WORKSPACE_ROOT
40
40
WORKSPACE_TAR=$( rlocation com_google_protobuf/rust/release_crates/workspace.tar)
41
41
42
42
echo " Expanding Cargo workspace tar"
43
- tar -xvf $WORKSPACE_TAR -C $WORKSPACE_ROOT
43
+
44
+ # The tar binary on Windows does not know how to handle file paths that start
45
+ # with C:\ or similar, so we go a little out of our way here to avoid passing
46
+ # any paths as arguments to tar.
47
+ pushd $WORKSPACE_ROOT
48
+ tar -xv < $WORKSPACE_TAR
49
+ popd
44
50
45
51
# Put the Bazel-built protoc at the beginning of $PATH
46
52
PATH=$( dirname $( rlocation com_google_protobuf/protoc) ) :$PATH
You can’t perform that action at this time.
0 commit comments