Skip to main content
Using BuildBuddy with Github Actions is an easy way to get started using BuildBuddy with a CI system. For an even easier way to get started, see the BuildBuddy Workflows Setup Guide.

Setup instructions

There are three steps:
1

Create a workflow file

Set up your GitHub Actions workflow configuration
2

Update your .bazelrc

Add BuildBuddy configuration to your Bazel settings
3

Set up GitHub Secret

Store your BuildBuddy API key securely in GitHub

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.
1

Get your API key

Log in to your BuildBuddy account and visit your Quickstart page to get your BuildBuddy API key.
2

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 clicking Link 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
And the following lines to your 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.