Skip to content

Commit

Permalink
simplify bazelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
sluongng committed Nov 13, 2024
1 parent 3110196 commit 3c720ac
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,34 @@ common:remote-shared --remote_download_minimal
common:remote-shared --jobs=100
common:remote-shared --verbose_failures

common:target-linux-x86 --platforms=@buildbuddy_toolchain//:platform_linux_x86_64
common:target-linux-x86 --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

common:target-linux-arm64 --platforms=@buildbuddy_toolchain//:platform_linux_arm64
common:target-linux-arm64 --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_arm64

# Build with --config=remote to use BuildBuddy RBE.
common:remote --config=remote-shared
common:remote --config=target-linux-x86
common:remote --config=cache
common:remote --remote_executor=grpcs://buildbuddy.buildbuddy.io
common:remote --platforms=@buildbuddy_toolchain//:platform_linux_x86_64
common:remote --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

# Specify arch to do cross-platform builds on remote until the go toolchain can
# accomodate multiple execution platforms
common:remote-linux-arm64 --config=remote-shared
common:remote-linux-arm64 --config=target-linux-arm64
common:remote-linux-arm64 --config=cache
common:remote-linux-arm64 --remote_executor=grpcs://buildbuddy.buildbuddy.io
common:remote-linux-arm64 --platforms=@buildbuddy_toolchain//:platform_linux_arm64
common:remote-linux-arm64 --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_arm64

# Build with --config=remote-dev to use BuildBuddy RBE.
common:remote-dev --config=remote-shared
common:remote-dev --config=target-linux-x86
common:remote-dev --config=cache-dev
common:remote-dev --remote_executor=grpcs://buildbuddy.buildbuddy.dev
common:remote-dev --platforms=@buildbuddy_toolchain//:platform_linux_x86_64
common:remote-dev --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

# Specify arch to do cross-platform builds on remote-dev
common:remote-dev-linux-amd64 --config=remote-dev
common:remote-dev-linux-amd64 --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

common:remote-dev-linux-arm64 --config=remote-dev
common:remote-dev-linux-arm64 --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_arm64
common:remote-dev-linux-arm64 --config=target-linux-arm64

# Build with --config=probers to use BuildBuddy RBE in the probers org.
common:probers --config=remote-shared
Expand All @@ -84,15 +84,14 @@ common:probers --extra_execution_platforms=@buildbuddy_toolchain//:platform_linu

# Build with --config=probers-dev to use BuildBuddy RBE in the probers org.
common:probers-dev --config=remote-shared
common:probers-dev --config=target-linux-x86
common:probers-dev --bes_results_url=https://buildbuddy-probers.buildbuddy.dev/invocation/
common:probers-dev --bes_backend=grpcs://buildbuddy-probers.buildbuddy.dev
common:probers-dev --remote_cache=grpcs://buildbuddy-probers.buildbuddy.dev
common:probers-dev --remote_executor=grpcs://buildbuddy-probers.buildbuddy.dev
common:probers-dev --remote_upload_local_results
common:probers-dev --remote_cache_compression
common:probers-dev --experimental_remote_cache_compression_threshold=100
common:probers-dev --platforms=@buildbuddy_toolchain//:platform_linux_x86_64
common:probers-dev --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

# Write build outputs in a platform-specific directory,
# avoid outputs being wiped and rewritten when switching between platforms.
Expand Down Expand Up @@ -165,11 +164,10 @@ common:deflake-go --test_arg=-test.failfast

# Configuration used for Linux workflows
common:linux-workflows --config=remote-shared
common:linux-workflows --config=target-linux-x86
common:linux-workflows --config=workflows
common:linux-workflows --config=buildbuddy_remote_executor
common:linux-workflows --build_metadata=TAGS=linux-workflow
common:linux-workflows --platforms=@buildbuddy_toolchain//:platform_linux_x86_64
common:linux-workflows --extra_execution_platforms=@buildbuddy_toolchain//:platform_linux_x86_64

# Configuration used for Mac workflows
# TODO(bduffany): Enable RBE for Mac workflows, and reconcile this with other configs
Expand Down

0 comments on commit 3c720ac

Please sign in to comment.