Commit e3ccea70dd

Andrew Kelley <andrew@ziglang.org>
2022-08-10 23:49:56
CI: isolate zig-cache for parallel debug/release builds
1 parent 09ec9b0
Changed files (1)
ci/zinc/linux_test_stage3_debug.sh
@@ -12,6 +12,12 @@ git config core.abbrev 9
 
 echo "building stage3-debug with zig version $($OLD_ZIG version)"
 
+# Override the cache directories so that we don't clobber with the release
+# testing script which is running concurrently and in the same directory.
+# Normally we want processes to cooperate, but in this case we want them isolated.
+export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-cache-local-debug"
+export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-cache-global-debug"
+
 export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
 export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"