Skip to content

Commit

Permalink
[macOS] Make cache look at the user's build only.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 344643147
  • Loading branch information
agutkin authored and copybara-github committed Nov 29, 2020
1 parent f2e0a03 commit 9fad21a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Update environment variables
run: |
echo "USER=${USER}" >> ${GITHUB_ENV}
- name: Mount bazel cache
uses: actions/cache@v2
with:
# See https://docs.bazel.build/versions/master/output_directories.html
path: "/private/var/tmp"
path: /private/var/tmp/_bazel_${{ env.USER }}
key: ${{ runner.os }}-bazel-${{ hashFiles('WORKSPACE.bazel') }}
restore-keys: ${{ runner.os }}-bazel

Expand Down

0 comments on commit 9fad21a

Please sign in to comment.