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.
This commit is contained in:
Andrew Kelley 2023-02-19 16:23:59 -07:00
parent cb09470063
commit c641af3cba
8 changed files with 11 additions and 0 deletions

View File

@ -60,6 +60,7 @@ stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
# TODO: add -fqemu back to this line
stage3-debug/bin/zig build test docs \
-j1 \
-fwasmtime \
-Dstatic-llvm \
-Dtarget=native-native-musl \

View File

@ -60,6 +60,7 @@ stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
# TODO: add -fqemu back to this line
stage3-release/bin/zig build test docs \
-j1 \
-fwasmtime \
-Dstatic-llvm \
-Dtarget=native-native-musl \

View File

@ -44,6 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \
$HOME/local/bin/ninja install
stage3-release/bin/zig build test docs \
-j1 \
--zig-lib-dir "$(pwd)/../lib" \
-Denable-macos-sdk \
-Dstatic-llvm \

View File

@ -58,6 +58,7 @@ stage3-debug/bin/zig fmt --check .. \
stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
stage3-debug/bin/zig build test docs \
-j1 \
-fqemu \
-fwasmtime \
-Dstatic-llvm \

View File

@ -59,6 +59,7 @@ stage3-release/bin/zig fmt --check .. \
stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
stage3-release/bin/zig build test docs \
-j1 \
-fqemu \
-fwasmtime \
-Dstatic-llvm \

View File

@ -48,6 +48,7 @@ cmake .. \
make $JOBS install
stage3/bin/zig build test docs \
-j1 \
--zig-lib-dir "$(pwd)/../lib" \
-Denable-macos-sdk \
-Dstatic-llvm \

View File

@ -48,6 +48,7 @@ cmake .. \
make $JOBS install
stage3/bin/zig build test docs \
-j1 \
--zig-lib-dir "$(pwd)/../lib" \
-Denable-macos-sdk \
-Dstatic-llvm \

View File

@ -1067,6 +1067,10 @@ pub const StandaloneContext = struct {
zig_args.append(rel_zig_exe) catch unreachable;
zig_args.append("build") catch unreachable;
// TODO: fix the various non-concurrency-safe issues in zig's standalone tests,
// and then remove this!
zig_args.append("-j1") catch @panic("OOM");
zig_args.append("--build-file") catch unreachable;
zig_args.append(b.pathFromRoot(build_file)) catch unreachable;