Skip to content

Commit 333f1d6

Browse files
Use BuildBuddy token in CI
1 parent 159a782 commit 333f1d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
runs-on: macos-14
1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Select Xcode
20+
- name: Set Up CI
2121
run: .github/workflows/xcode_select.sh
22+
env:
23+
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
2224
- name: Lint
2325
run: bazelisk run :lint && git diff --exit-code
2426
- name: Build and Test

.github/workflows/xcode_select.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ echo "Generating bazelrc"
1212
# Enable remote cache for all Github Action builds
1313
echo "build --config=remote_cache" > user.bazelrc
1414
echo "build --config=ci" >> user.bazelrc
15+
echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >> user.bazelrc

0 commit comments

Comments
 (0)