Skip to content

Commit

Permalink
Put GitHub-specific flags into setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
phst committed Jan 29, 2024
1 parent e252453 commit a1f7bec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/actions/set-up/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@ runs:
restore-keys: |
bazel-actions-${{runner.os}}-${{matrix.bazel}}-
bazel-actions-${{runner.os}}-
- name: Set up .bazelrc
shell: bash
run: |
cat >> github.bazelrc <<'EOF'
common --announce_rc
common --verbose_failures
common --experimental_convenience_symlinks=ignore
EOF
6 changes: 0 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,6 @@ def _bazel(self, command: str, targets: Iterable[str], *,

def _bazel_options(self) -> Sequence[str]:
opts = []
if self._github:
opts += [
'--announce_rc',
'--verbose_failures',
'--experimental_convenience_symlinks=ignore',
]
if self._action_cache:
opts.append('--disk_cache=' + str(self._action_cache))
if self._repository_cache:
Expand Down

0 comments on commit a1f7bec

Please sign in to comment.