1build --incompatible_strict_action_env 2build --sandbox_tmpfs_path=/tmp 3build --enable_platform_specific_config 4build -c opt 5 6# C/C++ 7common --repo_env=CC=clang 8build --incompatible_enable_cc_toolchain_resolution 9# Requires a relatively modern clang. 10build:ci --features=layering_check 11 12# Java 13build --java_language_version=8 14build --tool_java_language_version=9 15 16# Windows 17# Only compiles with clang on Windows. 18build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl 19build:windows --extra_execution_platforms=//:x64_windows-clang-cl 20build:windows --features=static_link_msvcrt 21# Required as PATH doubles as the shared library search path on Windows and the 22# Java agent functionality depends on system-provided shared libraries. 23test:windows --noincompatible_strict_action_env 24run:windows --noincompatible_strict_action_env 25 26# Toolchain 27# Since the toolchain is conditional on OS and architecture, set it on the particular GitHub Action. 28build:toolchain --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 29build:toolchain --//third_party:toolchain 30 31# Forward debug variables to tests 32test --test_env=JAZZER_AUTOFUZZ_DEBUG 33test --test_env=JAZZER_REFLECTION_DEBUG 34 35# CI tests (not using the toolchain to test OSS-Fuzz & local compatibility) 36test:ci --test_env=JAZZER_CI=1 37build:ci --bes_results_url=https://app.buildbuddy.io/invocation/ 38build:ci --bes_backend=grpcs://remote.buildbuddy.io 39build:ci --remote_cache=grpcs://remote.buildbuddy.io 40build:ci --remote_timeout=3600 41 42# Maven publishing (local only, requires GPG signature) 43build:maven --config=toolchain 44build:maven --stamp 45build:maven --define "maven_repo=https://oss.sonatype.org/service/local/staging/deploy/maven2" 46build:maven --java_runtime_version=local_jdk_8 47 48# Generic coverage configuration taken from https://github.com/fmeum/rules_jni 49coverage --combined_report=lcov 50coverage --experimental_use_llvm_covmap 51coverage --experimental_generate_llvm_lcov 52coverage --repo_env=CC=clang 53coverage --repo_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=1 54coverage --repo_env=GCOV=llvm-profdata 55 56# Instrument all source files of non-test targets matching at least one of these regexes. 57coverage --instrumentation_filter=^//agent/src/main[:/],^//driver:,^//sanitizers/src/main[:/] 58coverage --test_tag_filters=-no-coverage 59