1*c2e18aaaSAndroid Build Coastguard Worker# Enable building targets in //external:__subpackages__. 2*c2e18aaaSAndroid Build Coastguard Workercommon --experimental_sibling_repository_layout 3*c2e18aaaSAndroid Build Coastguard Workercommon --experimental_disable_external_package 4*c2e18aaaSAndroid Build Coastguard Worker 5*c2e18aaaSAndroid Build Coastguard Worker# Show the full set of flags for observability and debuggability. 6*c2e18aaaSAndroid Build Coastguard Workercommon --announce_rc 7*c2e18aaaSAndroid Build Coastguard Worker 8*c2e18aaaSAndroid Build Coastguard Worker# Do not enable BzlMod as the migration to bzlmod has not been done yet 9*c2e18aaaSAndroid Build Coastguard Workercommon --noenable_bzlmod 10*c2e18aaaSAndroid Build Coastguard Worker 11*c2e18aaaSAndroid Build Coastguard Worker# Enforce consistent action environment variables to improve remote cache hit 12*c2e18aaaSAndroid Build Coastguard Worker# rate. 13*c2e18aaaSAndroid Build Coastguard Workerbuild --incompatible_strict_action_env 14*c2e18aaaSAndroid Build Coastguard Worker 15*c2e18aaaSAndroid Build Coastguard Worker# Use the JDK defined by local_java_runtime in //prebuilts/jdk/jdk<VERSION> 16*c2e18aaaSAndroid Build Coastguard Workerbuild --java_runtime_version=jdk21 17*c2e18aaaSAndroid Build Coastguard Worker 18*c2e18aaaSAndroid Build Coastguard Worker# Depending on how many machines are in the remote execution instance, setting 19*c2e18aaaSAndroid Build Coastguard Worker# this higher can make builds faster by allowing more jobs to run in parallel. 20*c2e18aaaSAndroid Build Coastguard Worker# Setting it too high can result in jobs that timeout, however, while waiting 21*c2e18aaaSAndroid Build Coastguard Worker# for a remote machine to execute them. 22*c2e18aaaSAndroid Build Coastguard Workerbuild:remote --jobs=200 23*c2e18aaaSAndroid Build Coastguard Worker 24*c2e18aaaSAndroid Build Coastguard Worker# Enable the remote cache so that action results can be shared across machines, 25*c2e18aaaSAndroid Build Coastguard Worker# developers, and workspaces. 26*c2e18aaaSAndroid Build Coastguard Workerbuild:remote --remote_cache=grpcs://remotebuildexecution.googleapis.com 27*c2e18aaaSAndroid Build Coastguard Worker 28*c2e18aaaSAndroid Build Coastguard Worker# Enable remote execution so that actions are performed on the remote systems. 29*c2e18aaaSAndroid Build Coastguard Workerbuild:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com 30*c2e18aaaSAndroid Build Coastguard Worker 31*c2e18aaaSAndroid Build Coastguard Worker# Set a higher timeout value, just in case. 32*c2e18aaaSAndroid Build Coastguard Workerbuild:remote --remote_timeout=3600 33*c2e18aaaSAndroid Build Coastguard Worker 34*c2e18aaaSAndroid Build Coastguard Worker# Enable authentication. This will pick up application default credentials by 35*c2e18aaaSAndroid Build Coastguard Worker# default. You can use --auth_credentials=some_file.json to use a service 36*c2e18aaaSAndroid Build Coastguard Worker# account credential instead. 37*c2e18aaaSAndroid Build Coastguard Workerbuild:remote --google_default_credentials=true 38