-
Notifications
You must be signed in to change notification settings - Fork 614
Expand file tree
/
Copy path.bazelrc
More file actions
39 lines (33 loc) · 1.3 KB
/
.bazelrc
File metadata and controls
39 lines (33 loc) · 1.3 KB
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
# ============================================================
# Common settings
# ============================================================
common --color=yes
common --show_timestamps
# ============================================================
# Caching - Critical for performance
# ============================================================
# Persist external repository downloads (Go modules, etc.)
common --repository_cache=~/.cache/bazel-repo
# Persist build artifacts across clean/workspaces
common --disk_cache=~/.cache/bazel-disk
common --experimental_disk_cache_gc_max_size=100G
============================================================
# Build & Test performance
# ============================================================
# Increase action parallelism
build --jobs=auto
test --jobs=auto
# Keep going on errors to maximize cache population
build --keep_going
test --keep_going
# Reduce sandbox overhead for trusted builds (comment out for hermetic CI)
build --spawn_strategy=local
build --strategy=GoCompilePkg=local
test --spawn_strategy=local
test --strategy=GoCompilePkg=local
# ============================================================
# Test settings
# ============================================================
test --test_output=errors
test --test_summary=terse
test --local_test_jobs=auto