Skip to content

CICD-387 · Bazel remote execution ​

Encyclopedia · Monorepo and large-scale build engineering · All snippets

Previous · CICD-386 · Next · CICD-388

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites trusted checkout with the base ref fetched and pinned package manager or build tool.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters BAZEL_EXECUTOR.

2. Copy the snippet ​

bash
bazel build //services/api:release --remote_executor="${BAZEL_EXECUTOR:?}" --remote_timeout=60

3. How it works ​

Bazel computes the requested dependency graph and builds or tests targets with the selected toolchain and execution options.

4. Verify the result ​

Configure trusted remote execution with a compatible toolchain and TLS. Compare action logs to a local build.

Validation syntax-validated (Bash parse). Status definitions.