File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
tests/support/remote-toolchains Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,30 @@ build:rtd --enable_bzlmod
3535
3636common --incompatible_python_disallow_native_rules
3737
38+ ### TODO @aignas 2025-03-22: remove?
39+ #
3840build --lockfile_mode=update
41+
42+ # Only download the final result, the intermediate files can stay on the
43+ # server side.
44+ build --remote_download_toplevel
45+
46+ # Kubernetes will have a different host name than 'localhost'.
47+ build:remote-exec --remote_executor=grpc://localhost:8980
48+ # The Buildbarn worker can configure instance_name_prefix to create separate
49+ # execution bins within the cluster. Optional, but useful when trying new
50+ # worker configurations.
51+ build:remote-exec --remote_instance_name=fuse
52+ # Make sure to load Buildbarn with more requests than the number of CPUs on
53+ # your host machine.
54+ build:remote-exec --jobs=64
55+ # Make sure that the remote execution platform and the matching toolchains
56+ # take precedence over the other definitions in the WORKSPACE file.
57+ #build:remote-exec --extra_toolchains=//tests/support/remote-toolchains:all
58+
59+ # When running Ubuntu 22.04 executors.
60+ build:remote-ubuntu-22-04 --config=remote-exec
61+ build:remote-ubuntu-22-04 --extra_execution_platforms=//tests/support/remote-toolchains:ubuntu-act-22-04-platform
62+
63+ # When running bare executors on your own host machine.
64+ build:remote-local --config=remote-exec
Original file line number Diff line number Diff line change 1+ constraint_setting (
2+ name = "container-image" ,
3+ )
4+
5+ constraint_value (
6+ name = "ubuntu-act-22-04" ,
7+ constraint_setting = ":container-image" ,
8+ )
9+
10+ REMOTE_EXEC_CONSTRAINTS = [
11+ "@platforms//cpu:x86_64" ,
12+ "@platforms//os:linux" ,
13+ ":ubuntu-act-22-04" ,
14+ ]
15+
16+ platform (
17+ name = "ubuntu-act-22-04-platform" ,
18+ constraint_values = REMOTE_EXEC_CONSTRAINTS ,
19+ exec_properties = {
20+ "OSFamily" : "linux" ,
21+ "container-image" : "docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448" ,
22+ },
23+ )
You can’t perform that action at this time.
0 commit comments