Skip to content

Commit f7997b1

Browse files
committed
ci(windows): fallback variable assignment for cmd consoles
1 parent de39511 commit f7997b1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ jobs:
2323
with:
2424
go-version: "1.26"
2525

26-
- name: Install Bazelisk
26+
- name: Install Bazelisk on UNIX/Linux
27+
if: matrix.platform != 'windows-latest'
2728
run: |
2829
go install github.com/bazelbuild/bazelisk@latest
2930
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
3031
export USE_BAZEL_VERSION=8.3.0
3132
bazel version
33+
34+
- name: Install Bazelisk on Windows
35+
if: matrix.platform == 'windows-latest'
36+
run: |
37+
go install github.com/bazelbuild/bazelisk@latest
38+
echo "$(go env GOPATH)\bin" >> $GITHUB_PATH
39+
setx USE_BAZEL_VERSION 8.3.0
40+
bazel version
3241
3342
- name: Checkout code
3443
uses: actions/checkout@v3

0 commit comments

Comments
 (0)