Skip to content

Commands

The ./dev.sh script runs commands inside the dev container from the host. Omit it if you're already inside the container.

Bazel (primary build system)

Build

./dev.sh bazel build //...

Test

./dev.sh bazel test //...

CMake (secondary build system)

Configure

./dev.sh cmake -B build

Build

./dev.sh cmake --build build

Test

./dev.sh ctest --test-dir build --output-on-failure

Format

./dev.sh ./tools/format.sh

To check without modifying (used in CI):

./dev.sh ./tools/format.sh --check

Lint

./dev.sh ./tools/lint.sh

Docs

Build

./dev.sh ./tools/docs.sh

Serve

./dev.sh ./tools/docs.sh serve