-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Attempt to correct the location of local Bazel cache on Windows …
…(issue \#75). PiperOrigin-RevId: 373463749
- Loading branch information
1 parent
e8448ea
commit cbc42ab
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,18 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Update environment variables | ||
# See https://docs.bazel.build/versions/master/output_directories.html | ||
run: | | ||
echo "BAZEL_CACHE_DIR=$env:USERPROFILE\_bazel_$env:USERNAME" >> $env:GITHUB_ENV | ||
- name: Mount bazel cache | ||
uses: actions/cache@v2 | ||
# Note: Note that below the version is pinned to `v2.1.4`. This is due to | ||
# several path bugs. See: | ||
# https://stackoverflow.com/questions/66870002/github-actions-cache-maven-m2-repository-on-windows-environment-c-users-run | ||
uses: actions/[email protected] | ||
with: | ||
# See https://docs.bazel.build/versions/master/output_directories.html | ||
path: ${{ github.workspace }}/.cache/bazel | ||
path: ${{ env.BAZEL_CACHE_DIR}} | ||
key: ${{ runner.os }}-bazel-${{ hashFiles('WORKSPACE.bazel') }} | ||
restore-keys: ${{ runner.os }}-bazel | ||
|
||
|