Commit 6028adda4b
Changed files (5)
ci
ci/linux/build-aarch64.sh
@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
rm -rf build-release
mkdir build-release
cd build-release
+echo "::group:: Build Zig"
cmake .. \
-DCMAKE_INSTALL_PREFIX="stage3-release" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
@@ -41,6 +42,7 @@ unset CC
unset CXX
ninja install
+echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-release/bin/zig fmt --check .. \
@@ -48,16 +50,20 @@ stage3-release/bin/zig fmt --check .. \
--exclude ../build-release
# simultaneously test building self-hosted without LLVM and with 32-bit arm
+echo "::group:: zig build arm32"
stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
+echo "::endgroup::"
# TODO: add -fqemu back to this line
+echo "::group:: zig build test docs"
stage3-release/bin/zig build test docs \
-fwasmtime \
-Dstatic-llvm \
-Dtarget=native-native-musl \
--search-prefix "$PREFIX" \
--zig-lib-dir "$(pwd)/../lib"
+echo "::endgroup::"
# Look for HTML errors.
tidy --drop-empty-elements no -qe ../zig-cache/langref.html
ci/linux/build-x86_64-debug.sh
@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
rm -rf build-debug
mkdir build-debug
cd build-debug
+echo "::group:: Build Zig"
cmake .. \
-DCMAKE_INSTALL_PREFIX="stage3-debug" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
@@ -41,6 +42,7 @@ unset CC
unset CXX
ninja install
+echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-debug/bin/zig fmt --check .. \
@@ -49,10 +51,13 @@ stage3-debug/bin/zig fmt --check .. \
--exclude ../build-release
# simultaneously test building self-hosted without LLVM and with 32-bit arm
+echo "::group:: zig build arm32"
stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
+echo "::endgroup::"
# building docs disabled due to:
# https://github.com/ziglang/zig/issues/13546
+echo "::group:: zig build test"
stage3-debug/bin/zig build test \
-fqemu \
-fwasmtime \
@@ -60,6 +65,7 @@ stage3-debug/bin/zig build test \
-Dtarget=native-native-musl \
--search-prefix "$PREFIX" \
--zig-lib-dir "$(pwd)/../lib"
+echo "::endgroup::"
# langref disabled due to:
# https://github.com/ziglang/zig/issues/13546
ci/linux/build-x86_64-release.sh
@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
rm -rf build-release
mkdir build-release
cd build-release
+echo "::group:: Build Zig"
cmake .. \
-DCMAKE_INSTALL_PREFIX="stage3-release" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
@@ -41,6 +42,7 @@ unset CC
unset CXX
ninja install
+echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-release/bin/zig fmt --check .. \
@@ -49,8 +51,11 @@ stage3-release/bin/zig fmt --check .. \
--exclude ../build-release
# simultaneously test building self-hosted without LLVM and with 32-bit arm
+echo "::group:: zig build arm32"
stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
+echo "::endgroup::"
+echo "::group:: zig build test docs"
stage3-release/bin/zig build test docs \
-fqemu \
-fwasmtime \
@@ -58,6 +63,7 @@ stage3-release/bin/zig build test docs \
-Dtarget=native-native-musl \
--search-prefix "$PREFIX" \
--zig-lib-dir "$(pwd)/../lib"
+echo "::endgroup::"
# Look for HTML errors.
tidy --drop-empty-elements no -qe ../zig-cache/langref.html
@@ -65,6 +71,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
# Produce the experimental std lib documentation.
stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
+echo "::group:: zig build stage4"
stage3-release/bin/zig build \
--prefix stage4-release \
-Denable-llvm \
@@ -75,6 +82,7 @@ stage3-release/bin/zig build \
-Dtarget=$TARGET \
-Duse-zig-libcxx \
-Dversion-string="$(stage3-release/bin/zig version)"
+echo "::endgroup::"
# diff returns an error code if the files differ.
echo "If the following command fails, it means nondeterminism has been"
ci/macos/build-aarch64.sh
@@ -23,6 +23,7 @@ git fetch --tags
mkdir build
cd build
+echo "::group:: Build Zig"
PATH="$HOME/local/bin:$PATH" cmake .. \
-DCMAKE_INSTALL_PREFIX="stage3-release" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
@@ -35,13 +36,17 @@ PATH="$HOME/local/bin:$PATH" cmake .. \
-GNinja
$HOME/local/bin/ninja install
+echo "::endgroup::"
+
+echo "::group:: zig build test docs"
stage3-release/bin/zig build test docs \
--zig-lib-dir "$(pwd)/../lib" \
-Denable-macos-sdk \
-Dstatic-llvm \
-Dskip-non-native \
--search-prefix "$PREFIX"
+echo "::endgroup::"
# Produce the experimental std lib documentation.
stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
ci/windows/build.ps1
@@ -31,8 +31,7 @@ if ((git rev-parse --is-shallow-repository) -eq "true") {
git fetch --unshallow # `git describe` won't work on a shallow repo
}
-Write-Output "Building Zig..."
-
+Write-Output "::group:: Building Zig..."
& "$ZIGPREFIXPATH\bin\zig.exe" build `
--prefix "$ZIGINSTALLDIR" `
--search-prefix "$ZIGPREFIXPATH" `
@@ -43,21 +42,22 @@ Write-Output "Building Zig..."
-Duse-zig-libcxx `
-Dtarget="$TARGET"
CheckLastExitCode
+Write-Output "::endgroup::"
-Write-Output " zig build test docs..."
-
+Write-Output "::group:: zig build test docs..."
& "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
--search-prefix "$ZIGPREFIXPATH" `
-Dstatic-llvm `
-Dskip-non-native `
-Denable-symlinks-windows
CheckLastExitCode
+Write-Output "::endgroup::"
# Produce the experimental std lib documentation.
-Write-Output "zig test std/std.zig..."
-
+Write-Output "::group:: zig test std/std.zig..."
& "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" `
--zig-lib-dir "$ZIGLIBDIR" `
-femit-docs `
-fno-emit-bin
CheckLastExitCode
+Write-Output "::endgroup::"
\ No newline at end of file