Skip to content

Commit

Permalink
Use $HOME/.bazelrc to configure all workspaces
Browse files Browse the repository at this point in the history
Writing to `.bazelrc.local` only configured the top-level workspace, but
failed to configure the sub-projects.
  • Loading branch information
aherrmann committed Jun 17, 2022
1 parent a4a9017 commit 53651bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
run: |
cat >.bazelrc.local <<EOF
cat >$HOME/.bazelrc <<EOF
common --config=ci
build --remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY"
# no-op flag to avoid "ERROR: Config value 'ci' is not defined in any .rc file"
common:ci --announce_rc=false
EOF
- name: Build & test
run: |
Expand All @@ -44,9 +46,11 @@ jobs:
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
run: |
cat >.bazelrc.local <<EOF
cat >$HOME/.bazelrc <<EOF
common --config=ci
build --remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY"
# no-op flag to avoid "ERROR: Config value 'ci' is not defined in any .rc file"
common:ci --announce_rc=false
EOF
- name: Build & test
run: |
Expand Down

0 comments on commit 53651bc

Please sign in to comment.