This action sets up your repository to use
Nativelink Cloud for your Bazel build. We primarily
set the values in your .bazelrc (creating or appending this as necessary) and
assume you're doing the rest of the Bazel setup.
- Goto https://app.nativelink.com and signup for an account
- Add the following to your Github steps
steps:
  # Other methods of getting Bazel are also usable, but this works well
  - uses: bazel-contrib/[email protected]
    with:
      # Avoid downloading Bazel every time.
      bazelisk-cache: true
      # Build cache is all in Nativelink
      disk-cache: false
      # Share repository cache between workflows.
      repository-cache: true
  - name: Nativelink setup
    uses: TraceMachina/nativelink-action@latest
    with:
      api_key: ${{ secrets.NATIVELINK_API_KEY }}
      account: your-account-here
      prefix: your-account-prefix-hereYou'll need to set your-account-here and your-account-prefix-here, as well
as the NATIVELINK_API_KEY value.
To determine these values, look at the Quickstart Bazel settings for your
account. If your build --remote-cache= value is say for example
build --remote_cache=grpcs://cas-tom-parker-shemilt-y0738m.build-faster.nativelink.net,
then your-account-here is tom-parker-shemilt and your-account-prefix-here
is tom-parker-shemilt-y0738m.
NATIVELINK_API_KEY is your build --remote_header value. e.g. if you have
build --remote_header=x-nativelink-api-key=some-key-value, then
NATIVELINK_API_KEY is some-key-value