Skip to content

Commit

Permalink
Use bazel remote cache server on self-hosted runners (#12160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frizi authored Jan 30, 2025
1 parent 5c07590 commit 2ca2880
Show file tree
Hide file tree
Showing 17 changed files with 135 additions and 69 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/bazel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
- uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
- uses: actions/checkout@v4
- name: Expose env variables
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/engine-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down
45 changes: 30 additions & 15 deletions .github/workflows/engine-checks-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -67,8 +68,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -108,8 +110,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -150,8 +153,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -192,8 +196,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -234,8 +239,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -288,8 +294,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -340,8 +347,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -393,8 +401,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -446,8 +455,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -499,8 +509,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -556,8 +567,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -611,8 +623,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -667,8 +680,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -723,8 +737,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/engine-checks-optional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -68,8 +69,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -121,8 +123,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/engine-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -68,8 +69,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -110,8 +112,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -163,8 +166,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -216,8 +220,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -272,8 +277,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down Expand Up @@ -328,8 +334,9 @@ jobs:
run: "\n\"BAZEL_SH=C:\\Program Files\\Git\\bin\\bash.exe\" >> $env:GITHUB_ENV\n\"BAZEL_VC=C:\\BuildTools\\VC\" >> $env:GITHUB_ENV\n "
shell: pwsh
- name: Setup bazel environment
uses: bazel-contrib/setup-bazel@09f3a72d13a081857b0ee94e986ffa84caef7c85
uses: bazel-contrib/setup-bazel@0.13.0
with:
bazelrc: build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
output-base: ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
- name: Expose Artifact API and context information.
uses: actions/github-script@v7
Expand Down
Loading

0 comments on commit 2ca2880

Please sign in to comment.