Skip to content

Commit 482229c

Browse files
committed
add default sccache region
1 parent 7f25768 commit 482229c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/scripts/task_build.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@
4949
if use_sccache:
5050
if args.sccache_bucket:
5151
env["SCCACHE_BUCKET"] = args.sccache_bucket
52-
env["SCCACHE_REGION"] = args.sccache_region
52+
env["SCCACHE_REGION"] = "us-west-2"
53+
if args.sccache_region:
54+
env["SCCACHE_REGION"] = args.sccache_region
55+
5356
logging.info(f"Using sccache bucket: {args.sccache_bucket}")
54-
logging.info(f"Using sccache region: {args.sccache_region}")
57+
logging.info(f"Using sccache region: {env['SCCACHE_REGION']}")
5558
else:
5659
logging.info(f"No sccache bucket set, using local cache")
5760
env["CXX"] = "/opt/sccache/c++"

0 commit comments

Comments
 (0)