Setup instructions
There are three steps:Workflow file
All you have to do is create a file.github/workflows/main.yaml
.github/workflows/main.yaml
Updating your .bazelrc
You’ll then need to add the following configuration to your.bazelrc
.bazelrc
Github secrets
Finally, you’ll need to create a GitHub Secret containing your BuildBuddy API Key.Get your API key
Log in to your BuildBuddy account and visit your Quickstart page to get your BuildBuddy API key.
Add secret to GitHub
Add your BuildBuddy API Key as GitHub Secret named
BUILDBUDDY_ORG_API_KEY. For more information on setting up Github Secrets, click here.More
Github commit statuses
If you’d like BuildBuddy to publish commit statuses to your repo, you can do so by logging in and clickingLink Github Account in the user menu in the top right.
Visibility
By default, authenticated builds are only visible to members of your BuildBuddy organization. If you’d like your BuildBuddy results pages to be visible to members outside of your organization, you can add the following line to your.bazelrc:
.bazelrc
Remote build execution
If you’d like to use BuildBuddy’s Remote Build Execution capabilities in your CI workflow, you can add the following lines to your.bazelrc:
.bazelrc
WORKSPACE file:
WORKSPACE
If you’re using Java, or have a complex project - you’ll likely need to configure the toolchain flags a bit. For more information, see our Remote Build Execution guide.