main
text 64 lines 1.78 KB
Raw
1 # Enable Bzlmod for every Bazel command
2 common --enable_bzlmod
3
4 # BuildBuddy
5 build --bes_results_url=https://app.buildbuddy.io/invocation/
6 build --bes_backend=grpcs://remote.buildbuddy.io
7 build --nolegacy_important_outputs
8 try-import ./auth.bazelrc
9
10 ###############################
11 # Filesystem interactions #
12 ###############################
13
14 build --disk_cache=~/.bazel/cache
15 build --repository_cache=~/.bazel/repo_cache
16
17 build --symlink_prefix=dist/
18
19 build --nolegacy_external_runfiles
20 run --nolegacy_external_runfiles
21 test --nolegacy_external_runfiles
22
23 build --incompatible_strict_action_env
24 run --incompatible_strict_action_env
25 test --incompatible_strict_action_env
26
27 build --enable_runfiles
28 run --enable_runfiles
29 test --enable_runfiles
30
31 ## BUILD apple
32
33 build --macos_minimum_os=13
34 build --host_macos_minimum_os=13
35
36 # https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
37 build --incompatible_strict_action_env
38
39 # Disable the worker, which has sandboxing disabled by default, which can hide
40 # issues with non-hermetic bugs.
41 build --spawn_strategy=sandboxed,local
42 build --worker_sandboxing=true
43
44 build --incompatible_disallow_empty_glob
45
46 build --features=swift.use_global_module_cache
47
48 # Enable indexing while building.
49 build --features swift.use_global_index_store
50 build --features swift.index_while_building
51
52 # Since there's no way to set the deployment version for swift_{binary,test},
53 # this forces all targets' minimum macOS to Github Actions macOS version.
54 build --macos_minimum_os=12.6
55
56 ## TEST
57
58 # `bazel test` tries to build everything also by default, so skip that so the
59 # *_library targets in examples/... aren't built (and fail since they are
60 # platform specific).
61 test --build_tests_only
62
63 # Show detailed errors for test failures
64 test --test_output=errors