Skip to content

Commit

Permalink
Run Github workflows with -c opt
Browse files Browse the repository at this point in the history
This should shrink the action artifacts by quite a bit, hopefully buying us some headroom with the default Github runners, which are currently running out of disk space.

This will make compile times a bit longer (%5 on my M1 Pro), but this might be recovered by the smaller cache sizes. Currently transferring the action artifact cache takes about 1-1.5 minutes to download and about the same amount to upload.

PiperOrigin-RevId: 646539493
  • Loading branch information
kevinoconnor7 authored and copybara-github committed Jun 25, 2024
1 parent 5bb1ffd commit 5303aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
run: |
echo "build --repository_cache=~/bazel-repository-cache" >> ~/.bazelrc
echo "build --disk_cache=~/bazel-action-cache" >> ~/.bazelrc
echo "build -c opt" >> ~/.bazelrc
echo "build --verbose_failures" >> ~/.bazelrc
bazel info
- name: Run tests
Expand Down

0 comments on commit 5303aaa

Please sign in to comment.