From e3ccea70dd13ce94f5d2c96c7824fb743282447c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 10 Aug 2022 14:49:56 -0700 Subject: [PATCH] CI: isolate zig-cache for parallel debug/release builds --- ci/zinc/linux_test_stage3_debug.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/zinc/linux_test_stage3_debug.sh b/ci/zinc/linux_test_stage3_debug.sh index d40ad9da11..2ca2f7bad7 100755 --- a/ci/zinc/linux_test_stage3_debug.sh +++ b/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"