diff --git a/.bazelrc b/.bazelrc index 72fa16ab9..eabf3f9e6 100644 --- a/.bazelrc +++ b/.bazelrc @@ -24,3 +24,8 @@ build --define ssz=mainnet build --incompatible_strict_action_env test --incompatible_strict_action_env run --incompatible_strict_action_env + +# Disable kafka by default, it takes a long time to build... +build --define kafka_enabled=false +test --define kafka_enabled=false +run --define kafka_enabled=false diff --git a/.buildkite-bazelrc b/.buildkite-bazelrc index 414084f51..85815f3cc 100644 --- a/.buildkite-bazelrc +++ b/.buildkite-bazelrc @@ -45,3 +45,8 @@ build --stamp test --local_test_jobs=2 # Disabled race detection due to unstable test results under constrained environment build kite # build --features=race + +# Enable kafka for CI and docker images +build --define kafka_enabled=true +test --define kafka_enabled=true +run --define kafka_enabled=true