Skip to content

Commit

Permalink
Enable remote cache compression
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Jan 7, 2024
1 parent 7f6b0b0 commit 13fcfa1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bazel_cache_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ def main():
action='store_true'
)

parser.add_argument(
"--toplevel_download",
action='store_true'
)

args = parser.parse_args()

with open(args.in_file, 'rb') as f:
Expand All @@ -68,12 +63,11 @@ def main():
print(f"Wrote {len(result)} bytes into {args.out_file}")

with open('.bazelrc', 'a') as f:
f.write("build --remote_cache_compression")
f.write("build --remote_cache=https://storage.googleapis.com/secretflow\n")
f.write(f"build --google_credentials={args.out_file}\n")
if args.min_download:
f.write("build --remote_download_minimal\n")
elif args.toplevel_download:
f.write("build --remote_download_toplevel\n")
print(".bazelrc updated")


Expand Down

0 comments on commit 13fcfa1

Please sign in to comment.