-
Notifications
You must be signed in to change notification settings - Fork 87
/
.bazelrc
102 lines (83 loc) · 3.84 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Enable Bzlmod
common --enable_bzlmod
# Spawn strategy required for some tests
build --spawn_strategy=local
# Setup Xcode configuration.
build --xcode_version_config=//:host_xcodes
build --experimental_strict_conflict_checks
build --verbose_failures # Print the full command line for commands that failed
build --test_output=errors # Prints log file output to the console on failure
# Enable dbg compilation mode in this repo.
build --compilation_mode=dbg
# Use 'worker' strategy for swift compilation
build --strategy=SwiftCompile=worker
# This flips enable_global_index_store - see docs/index_while_building.md for a
# detailed summary
build --features swift.use_global_index_store
build --features swift.index_while_building
# Prevents leaking unexpected binaries via PATH to tests
build --test_env=PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Delete the VM test suite for github
build --deleted_packages tests/ios/vmd
# Allow for server to start (GitHub actions can timeout)
startup --local_startup_timeout_secs=240
# - iOS Configuration
# Required for tests/ios/... targets
build:ios --apple_platform_type=ios
# - VFS configuration
# Required for some tests in tests/ios/... targets
build:vfs --features=apple.virtualize_frameworks
# - iOS lldb test configuration
build:ios_lldb_test --config=ios
build:ios_lldb_test --define=apple.experimental.tree_artifact_outputs=1
# - iOS multi arch test configuration
build:ios_multi_arch_test --config=ios
build:ios_multi_arch_test --ios_minimum_os=10.2
# i386 was removed on rules_apple 3.x.x - this test case needs reworking
# to exemplify fat binaries on the latest version
build:ios_multi_arch_test --ios_multi_cpus=x86_64
build:remote_cache --bes_backend=grpcs://remote.buildbuddy.io
build:remote_cache --bes_results_url=https://app.buildbuddy.io/invocation/
build:remote_cache --experimental_build_event_upload_strategy=local
build:remote_cache --experimental_remote_cache_compression
build:remote_cache --experimental_remote_merkle_tree_cache
build:remote_cache --modify_execution_info=^(BitcodeSymbolsCopy|BundleApp|BundleTreeApp|DsymDwarf|DsymLipo|GenerateAppleSymbolsFile|ObjcBinarySymbolStrip|CppLink|ObjcLink|ProcessAndSign|SignBinary|SwiftArchive|SwiftStdlibCopy)$=+no-remote,^(BundleResources|ImportedDynamicFrameworkProcessor)$=+no-remote-exec
build:remote_cache --nolegacy_important_outputs
build:remote_cache --noslim_profile
build:remote_cache --remote_cache=grpcs://remote.buildbuddy.io
build:remote_cache --remote_timeout=3600
build:sandboxed --spawn_strategy=sandboxed
# Otherwise it still use the worker strategy
build:sandboxed --strategy=SwiftCompile=sandboxed
build:sandboxed --strategy=Genrule=sandboxed,local
build:sandboxed --strategy=StoryboardCompile=sandboxed,local
build:sandboxed --strategy=CleaningFramework=sandboxed,local
build:sandboxed --strategy=StoryboardLink=sandboxed,local
build:sandboxed --strategy=ProcessAndSign=sandboxed,local
build:sandboxed --strategy=AssetCatalogCompile=sandboxed,local
# By default don't upload local results to remote cache, only CI does this.
build --noremote_upload_local_results
build:ci --remote_upload_local_results
# - CI Configuration
# announce config values
common:ci --announce_rc
# enable remote cache
build:ci --config=remote_cache
# disable curses control since CI logs are not interactive
common:ci --curses=no
# turn off loading message updates
common:ci --noshow_loading_progress
# throttle progress updates in CI as they can clutter the logs
common:ci --show_progress_rate_limit=15.0
build:ci --progress_report_interval=60
# enable more verbose logging
build:ci --verbose_failures
# ci setup for tests, tend to be more flaky on github actions
build:ci --jobs=4
# allow extra time for simulators to boot
test:ci --test_env=STARTUP_TIMEOUT_SEC=350
test:ci --test_timeout=1000
test:ci --local_test_jobs=1
test:ci --flaky_test_attempts=3
# Load a user.bazelrc
try-import %workspace%/user.bazelrc