Repository navigation
Expand file tree
/
Copy path.bazelrc
More file actions
46 lines (37 loc) · 2.14 KB
/
Copy path.bazelrc
File metadata and controls
46 lines (37 loc) · 2.14 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
40
41
42
43
44
45
46
run -c opt --show_loading_progress=false --show_progress=false --ui_event_filters=error
run:verbose -c dbg --show_loading_progress=true --show_progress=true --ui_event_filters=info,error,debug
common --enable_platform_specific_config
common:windows --host_platform=//platforms:windows_msvc
# Keep Windows exec paths under MAX_PATH (rules_rs#270): name output
# directories "win-..." instead of "x64_windows-...".
common:windows --experimental_platform_in_output_dir
common:windows --experimental_override_name_platform_in_output_dir=//platforms:windows_msvc=win
# ring's build script needs generated headers in the legacy runfiles layout.
build:windows --legacy_external_runfiles
# Match Cargo.toml's release profile.
build:release -c opt
build:release --@rules_rust//rust/settings:lto=thin
build:release --@rules_rust//rust/settings:extra_rustc_flags=-Cstrip=symbols
# Statically linked Linux releases, also cross-compiled from macOS.
build:release-linux --config=release
build:release-linux --platforms=@rules_rs//rs/platforms:x86_64-unknown-linux-musl
build:release-linux-arm64 --config=release
build:release-linux-arm64 --platforms=@rules_rs//rs/platforms:aarch64-unknown-linux-musl
# Integration tests need bazel on PATH.
common --incompatible_strict_action_env
common --test_env=PATH
# Check selected first-party targets. CI checks all roots through
# //:rust_clippy_check and //:rust_format_check.
build --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build --output_groups=+clippy_checks
build --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build --output_groups=+rustfmt_checks
# Merge LCOV reports and enforce the per-target coverage thresholds.
coverage --coverage_output_generator=//tools/coverage:lcov_merger
# Optional longer timeout for local nested-Bazel integration tests.
test:no-test-timeouts --test_timeout=21600
# CI writes a JSON build event file so a failed job can print the stderr of
# failed actions and the test.log of failed tests (tools/report_bazel_failures.py).
# The relative path resolves against the workspace; bazel-* is gitignored.
common:ci --build_event_json_file=bazel-bep.json
common:ci --build_event_json_file_path_conversion=false