blob: 1212bc3ae1768f7fa28649af9fc5cb65e2f1f74a [file]
name: Bazel
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
permissions:
contents: read
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