Skip to content

Commit 86292b2

Browse files
committed
CI: isolate zig-cache for parallel debug/release builds
1 parent 50394d4 commit 86292b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/zinc/linux_test_stage3_debug.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ git config core.abbrev 9
1212

1313
echo "building stage3-debug with zig version $($OLD_ZIG version)"
1414

15+
# Override the cache directories so that we don't clobber with the release
16+
# testing script which is running concurrently and in the same directory.
17+
# Normally we want processes to cooperate, but in this case we want them isolated.
18+
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-cache-local-debug"
19+
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-cache-global-debug"
20+
1521
export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
1622
export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
1723

0 commit comments

Comments
 (0)