mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

If we run into issues with unreliable network connections in the future, we'll be able to mark the test as flaky so Bazel can retry it multiple times.
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
common --enable_platform_specific_config
|
|
common --experimental_repository_cache_hardlinks
|
|
|
|
# specify python path for pyo3 compile
|
|
build:windows --action_env="PYTHON_SYS_EXECUTABLE=c:/python/python.exe"
|
|
#build:linux --action_env="PYTHON_SYS_EXECUTABLE=/usr/local/bin/python3.8"
|
|
|
|
# only affects the ankihelper library
|
|
#build:macos --macos_cpus=x86_64,arm64
|
|
|
|
# runfiles are off by default on Windows, and we need them
|
|
build --enable_runfiles
|
|
|
|
# skip the slow zip step on Windows, as we have symlinks
|
|
build:windows --build_python_zip=false
|
|
|
|
# record version/build hash
|
|
build --workspace_status_command='bash ./scripts/status.sh'
|
|
|
|
# run clippy when compiling rust in test mode
|
|
test --aspects=@rules_rust//rust:rust.bzl%rust_clippy_aspect --output_groups=+clippy_checks
|
|
|
|
# print output when test fails
|
|
test --test_output=errors
|
|
|
|
# don't add empty __init__.py files
|
|
build --incompatible_default_to_explicit_init_py
|
|
|
|
build:ci --show_timestamps --isatty=0 --color=yes --show_progress_rate_limit=5
|
|
build:opt -c opt
|
|
|
|
# the TypeScript workers on Windows choke when deps are changed while they're
|
|
# still running, so shut them down at the end of the build.
|
|
build:windows --worker_quit_after_build
|
|
|
|
try-import %workspace%/user.bazelrc
|