Bazel Config
Get your credentials and paste them into user.bazelrc
build --remote_cache=grpcs://TODObuild --bes_backend=grpcs://TODObuild --remote_timeout=600build --remote_executor=grpcs://TODOYou’re ready to build the provided example with bazel build hello-world.
-
flake.nix: Add development tools and build dependencies underpackages. If you add build dependencies, add them to the RBE image and update the image URL. If you change the NativeLink input to another git hash, adjust the URL of the LRE Bazel module inMODULE.bazel, the URL to the container image inplatforms/BUILD.bazel, and update the flake inputs withnix flake update. Upon changes, don’t forget to re-enter the Nix environment withnix develop. -
user.bazelrc: Add Bazel flags to your builds, see Command-Line Reference. Don’t forget to setremote_cacheandremote_executorto your on-prem solution, see remote execution infrastructure. -
BUILD.bazel: The top level Bazel build file, see C/C++ Rules. -
platforms/BUILD.bazel: The platformlre-ccspecifies the URL of thecontainer-imagethat gets passed to your Nativelink instance withexec_properties. This platform inherits its properties from the LRE Bazel module.
-
pre-commit-hooks.nix: Configure linting and formatting for CI, see available hooks. You can manually call them withpre-commit run -a. -
.github/workflows: Contains pre-configured GitHub workflows for pre-commit hooks and building your project.