Skip to content

chore(deps): update dependency bazel to v7 #133

chore(deps): update dependency bazel to v7

chore(deps): update dependency bazel to v7 #133

Workflow file for this run

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:
pull_request:
types:
- opened
- reopened
push:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# action runners have bazelisk: - uses: bazelbuild/setup-bazelisk@v2
# https://github.com/bazelbuild/bazel/issues/11062
- run: mkdir -p "${TEST_TMPDIR}"
- run: env | sort
- name: Mount bazel cache # Optional
uses: actions/cache@v3
with:
# needs to be an absolute path, not a variable; I've made it match TEST_TMPDIR above
path: /tmp/bazel
key: _bazel_runner
- run: bazel build //...
- run: bazel test //...
- name: Build examples to ensure functionality
run: |
for d in $(find examples -name WORKSPACE -exec dirname {} \; ); do
echo "::group::example: ${d}"
(cd ${d} && bazel build //...);
echo "::endgroup::"
done
- name: Test examples to ensure functionality
# runs `bazel test` when subdirs have a "tests" subdir, assuming it includes unittests
run: |
for d in $(find examples -name tests -exec dirname {} \; ); do
echo "::group::test example: ${d}"
(cd ${d} && bazel test //...);
echo "::endgroup::"
done