Skip to content

Commit

Permalink
Look first for bazelisk, then bazel. Set the bazel disk/repo cache an…
Browse files Browse the repository at this point in the history
…d output user root to paths that would allow envoy to compile (otherwise it fails due to too long path names)
  • Loading branch information
dstanev-atvi committed Dec 18, 2023
1 parent d1112e6 commit 8f7417a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ jobs:
- name: setup
run: |
./ci/install_windows_bazelisk.ps1
- name: run tests
run: ./otel_sdk_build.cmd
- name: run otel_sdk_build.cmd
run: |
echo "build --disk_cache=c:/b/d" > ../top.bazelrc1
echo "common --repository_cache=c:/b/r" >> ../top.bazelrc
echo "startup --output_user_root=f:/b/u" >> ../top.bazelrc
type ../top.bazelrc
./otel_sdk_build.cmd
# cmake_test:
# name: CMake test (without otlp-exporter)
Expand Down
3 changes: 2 additions & 1 deletion otel_sdk_build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set BAZEL_SH=
set BAZEL_VC=
set BAZEL_VC_FULL_VERSION=

for /F "usebackq" %%i in (`where bazel`) do set __BAZEL__=%%i
rem Look first for bazelisk, then bazel
for /F "usebackq" %%i in (`where bazelisk bazel`) do set __BAZEL__=%%i
if "%__BAZEL__%"=="" goto:no-bazel

set PATH=c:\windows\system32;c:\program files\python312
Expand Down

0 comments on commit 8f7417a

Please sign in to comment.