Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,20 @@ jobs:
- uses: actions/checkout@v6
# bazelisk launches the Bazel release pinned in .bazelversion (9.1.1).
- uses: bazelbuild/setup-bazelisk@v3
# Persist Bazel's repository cache (downloaded external deps) and disk cache
# (compiled action outputs) so each run reuses prior work instead of fetching
# and rebuilding from scratch. The github.sha suffix makes every run save a
# fresh entry; restore-keys fall back to the newest prior cache for this
# os/config (and the lockfile hash busts it when dependencies change).
- name: Mount Bazel caches
uses: actions/cache@v4
with:
path: |
~/.cache/bazel-disk
~/.cache/bazel-repo
key: bazel-${{ matrix.os }}-${{ matrix.config.name }}-${{ hashFiles('MODULE.bazel.lock', '.bazelversion') }}-${{ github.sha }}
restore-keys: |
bazel-${{ matrix.os }}-${{ matrix.config.name }}-${{ hashFiles('MODULE.bazel.lock', '.bazelversion') }}-
bazel-${{ matrix.os }}-${{ matrix.config.name }}-
- name: bazel test
run: bazel test //... ${{ matrix.config.flags }}
run: bazel test //... --disk_cache=$HOME/.cache/bazel-disk --repository_cache=$HOME/.cache/bazel-repo ${{ matrix.config.flags }}
Loading