authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-19 16:23:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:12-07:00
logc641af3cba8f0e8e6bba0ba26dce18bd225a832e
tree20258ba8af631bdb11eeafa0f37ab6d1d256341c
parentcb094700631ea1ae238ea678c192ce4f85fbecc0

CI: use -j1 like a coward

Zig's build script has several race conditions preventing proper concurrent builds from working. By using -j1 for now, finishing this branch (concurrent zig builds) is untangled from the separate problem of correcting concurrency issues with zig's own build script. In other words, let's solve one problem at a time.

8 files changed, 11 insertions(+), 0 deletions(-)

ci/aarch64-linux-debug.sh+1
......@@ -60,6 +60,7 @@ stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
6060# TODO: add -fqemu back to this line
6161
6262stage3-debug/bin/zig build test docs \
63 -j1 \
6364 -fwasmtime \
6465 -Dstatic-llvm \
6566 -Dtarget=native-native-musl \
ci/aarch64-linux-release.sh+1
......@@ -60,6 +60,7 @@ stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
6060# TODO: add -fqemu back to this line
6161
6262stage3-release/bin/zig build test docs \
63 -j1 \
6364 -fwasmtime \
6465 -Dstatic-llvm \
6566 -Dtarget=native-native-musl \
ci/aarch64-macos.sh+1
......@@ -44,6 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \
4444$HOME/local/bin/ninja install
4545
4646stage3-release/bin/zig build test docs \
47 -j1 \
4748 --zig-lib-dir "$(pwd)/../lib" \
4849 -Denable-macos-sdk \
4950 -Dstatic-llvm \
ci/x86_64-linux-debug.sh+1
......@@ -58,6 +58,7 @@ stage3-debug/bin/zig fmt --check .. \
5858stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
5959
6060stage3-debug/bin/zig build test docs \
61 -j1 \
6162 -fqemu \
6263 -fwasmtime \
6364 -Dstatic-llvm \
ci/x86_64-linux-release.sh+1
......@@ -59,6 +59,7 @@ stage3-release/bin/zig fmt --check .. \
5959stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
6060
6161stage3-release/bin/zig build test docs \
62 -j1 \
6263 -fqemu \
6364 -fwasmtime \
6465 -Dstatic-llvm \
ci/x86_64-macos-debug.sh+1
......@@ -48,6 +48,7 @@ cmake .. \
4848make $JOBS install
4949
5050stage3/bin/zig build test docs \
51 -j1 \
5152 --zig-lib-dir "$(pwd)/../lib" \
5253 -Denable-macos-sdk \
5354 -Dstatic-llvm \
ci/x86_64-macos-release.sh+1
......@@ -48,6 +48,7 @@ cmake .. \
4848make $JOBS install
4949
5050stage3/bin/zig build test docs \
51 -j1 \
5152 --zig-lib-dir "$(pwd)/../lib" \
5253 -Denable-macos-sdk \
5354 -Dstatic-llvm \
test/tests.zig+4
......@@ -1067,6 +1067,10 @@ pub const StandaloneContext = struct {
10671067 zig_args.append(rel_zig_exe) catch unreachable;
10681068 zig_args.append("build") catch unreachable;
10691069
1070 // TODO: fix the various non-concurrency-safe issues in zig's standalone tests,
1071 // and then remove this!
1072 zig_args.append("-j1") catch @panic("OOM");
1073
10701074 zig_args.append("--build-file") catch unreachable;
10711075 zig_args.append(b.pathFromRoot(build_file)) catch unreachable;
10721076