.bazelrc: enable strict_action_env
Change-Id: Ib8e3fcd1e083ce49d942cb58743c7588602bb032
Reviewed-on: https://review.monogon.dev/c/monogon/+/757
Tested-by: Jenkins CI
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/.bazelrc b/.bazelrc
index c439c2c..3ab0071 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,3 +1,8 @@
+# Enable strict_action_env (use static PATH and do not inherit environment variables).
+# This avoids unnecessary cache invalidations.
+build --incompatible_strict_action_env=true
+
+# Build resources
startup --batch_cpu_scheduling --io_nice_level 7
build --jobs 12 --local_ram_resources=HOST_RAM*0.5
test --jobs 12 --test_output=errors