chore(deps): update dependency aspect_bazel_lib to v2.13.0 #311
Workflow file for this run
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
name: Bazel build | |
env: | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
# typically used for bazel internal testing: changes outputRoot, sets idletimeout to ~15s | |
TEST_TMPDIR: /tmp/bazel | |
# yamllint disable-line rule:truthy | |
on: [push] | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
#os: [macos-latest, macos-12, macos-11] | |
steps: | |
- | |
name: Date-Based Cache key | |
# get a key showing the current week (ISO: yyyyWww) | |
id: week | |
run: echo "::set-output name=iso::$(date +'bazel-%YW%U')" | |
- | |
uses: bazel-contrib/[email protected] | |
with: | |
# Cache bazel downloads via bazelisk | |
bazelisk-cache: true | |
# Store build cache per workflow. | |
disk-cache: ${{ steps.week.outputs.iso }} | |
# Share repository cache between workflows. | |
repository-cache: true | |
- | |
uses: actions/checkout@v4 | |
# action runners have bazelisk: - uses: bazelbuild/setup-bazelisk@v2 | |
# https://github.com/bazelbuild/bazel/issues/11062 | |
- | |
run: bazel build //... | |
- | |
run: bazel test //... --test_output=errors --test_summary=detailed | |
- | |
run: bazel shutdown |