Skip to content

Commit

Permalink
chore: update to use tweag/configure-bazel-remote-cache-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Nov 27, 2023
1 parent 7f8df9b commit 19d2c23
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v2
# DO NOT MERGE!!!
# TODO: Update with the correct tagged release.
- uses: tweag/configure-bazel-remote-cache-auth@fix_output
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.local
- name: Configure
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
run: |
if [ -z "$BUILDBUDDY_API_KEY" ]; then
cache_setting='--noremote_upload_local_results'
else
cache_setting="--remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY"
fi
cat >.bazelrc.local <<EOF
build $cache_setting
# DEBUG BEGIN
cat >&2 .bazelrc.local
# DEBUG END
cat >>.bazelrc.local <<EOF
build --config=ci
EOF
cat >~/.netrc <<EOF
Expand Down

0 comments on commit 19d2c23

Please sign in to comment.