blob: 8c91a0917a5278c2fc5928a4ee133436a5694516 [file]
name: Bazel
on: [push, pull_request]
jobs:
build:
name: ubuntu-26.04-Release
runs-on: ubuntu-26.04
defaults:
run:
shell: bash -e -o pipefail {0}
steps:
- uses: actions/checkout@v7
- name: Cache Bazel
uses: actions/cache@v6
with:
path: |
${{runner.temp}}/bazel-cache
~/.cache/bazelisk
key: bazel-${{runner.os}}-${{hashFiles('MODULE.bazel', 'WORKSPACE', 'BUILD', 'examples/BUILD', 'bazel/**')}}
restore-keys: |
bazel-${{runner.os}}-
- name: Build and Test
run: |
bazelisk test //... \
--compilation_mode=opt \
--cxxopt=-std=c++17 \
--host_cxxopt=-std=c++17 \
--disk_cache="${RUNNER_TEMP}/bazel-cache/disk" \
--repository_cache="${RUNNER_TEMP}/bazel-cache/repo" \
--test_output=errors