-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 1.21 KB
/
rbe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: NativeLink Cloud RBE Example
on: workflow_dispatch
env:
NL_ACCOUNT_ID: bclark8923
NL_SERVER_ID: d21fad
jobs:
run-nativelink-rbe:
name: NativeLink Cloud RBE
runs-on: ubuntu-20.04
steps:
- name: Checkout under $GITHUB_WORKSPACE
uses: actions/checkout@main
- uses: bazel-contrib/setup-bazel@0.8.5
with:
external-cache: true
bazelisk-cache: true
- name: Run Bazel build
shell: bash
run: |
bazel build \
--remote_cache=grpcs://cas-${{ env.NL_ACCOUNT_ID}}-${{ env.NL_SERVER_ID}}.build-faster.nativelink.net:443 \
--remote_executor=grpcs://scheduler-${{ env.NL_ACCOUNT_ID}}-${{ env.NL_SERVER_ID}}.build-faster.nativelink.net:443 \
--remote_header=x-nativelink-api-key=${{ secrets.NATIVELINK_COM_API_HEADER }} \
--bes_backend=grpcs://bes-${{ env.NL_ACCOUNT_ID}}-${{ env.NL_SERVER_ID}}.build-faster.nativelink.net:443 \
--bes_header=x-nativelink-api-key=${{ secrets.NATIVELINK_COM_API_HEADER }} \
--bes_results_url=https://app.nativelink.com/a/${{ env.NL_ACCOUNT_ID}}/build \
--platform_suffix=${{ github.run_id }}-${{ github.run_attempt }} \
//...