aboutsummaryrefslogtreecommitdiff
path: root/.bazelrc
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-08-09 10:17:34 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-08-09 10:25:46 +0200
commit63071a7f31170b9b4ec0f3173d5c91653261188b (patch)
tree3b6455d5f3203e15747a91c25517d7a0da2f8a8e /.bazelrc
parent0d4d6188bbdbb3dd52367f7082ee1dc5d6fd0a0e (diff)
downloadjazzer-api-63071a7f31170b9b4ec0f3173d5c91653261188b.tar.gz
Do not use toolchain in CI
Using the toolchain in the CI tests means that we are no longer catching potential OSS-Fuzz build issues (see previous commit). Restrict the use of the toolchain to the new and currently unused release config, as well as local Maven publishing. Also restructures some other flags in .bazelrc.
Diffstat (limited to '.bazelrc')
-rw-r--r--.bazelrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.bazelrc b/.bazelrc
index cd74be05..4497e572 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -4,6 +4,7 @@ build -c opt
# C/C++
build --cxxopt='-std=c++17'
build --action_env=CC=clang
+build --incompatible_enable_cc_toolchain_resolution
# Requires a relatively modern clang.
build:ci --features=layering_check
@@ -12,18 +13,21 @@ build --java_language_version=8
build --tool_java_language_version=9
# Toolchain
-build:toolchain --incompatible_enable_cc_toolchain_resolution
build:toolchain --extra_toolchains=@llvm_toolchain//:cc-toolchain-linux,@llvm_toolchain//:cc-toolchain-darwin
build:toolchain --//third_party:toolchain
-# RBE
-build:ci --config=toolchain
+# CI tests (not using the toolchain to test OSS-Fuzz compatibility)
build:ci --bes_results_url=https://app.buildbuddy.io/invocation/
build:ci --bes_backend=grpcs://cloud.buildbuddy.io
build:ci --remote_cache=grpcs://cloud.buildbuddy.io
build:ci --remote_timeout=3600
-# Maven publishing
+# Release
+build:release --config=toolchain
+build:release --config=ci
+
+# Maven publishing (local only, requires GPG signature)
+build:maven --config=toolchain
build:maven --stamp
build:maven --define "maven_repo=https://oss.sonatype.org/service/local/staging/deploy/maven2"
build:maven --java_runtime_version=localjdk_8