Commit 52e1be9c68
Changed files (5)
ci
ci/linux/build-aarch64.sh
@@ -26,7 +26,6 @@ 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" \
@@ -42,7 +41,6 @@ unset CC
unset CXX
ninja install
-echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-release/bin/zig fmt --check .. \
@@ -50,20 +48,16 @@ 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,7 +26,6 @@ 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" \
@@ -42,7 +41,6 @@ unset CC
unset CXX
ninja install
-echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-debug/bin/zig fmt --check .. \
@@ -51,13 +49,10 @@ 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 \
@@ -65,7 +60,6 @@ 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,7 +26,6 @@ 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" \
@@ -42,7 +41,6 @@ unset CC
unset CXX
ninja install
-echo "::endgroup::"
echo "Looking for non-conforming code formatting..."
stage3-release/bin/zig fmt --check .. \
@@ -51,11 +49,8 @@ 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 \
@@ -63,7 +58,6 @@ 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
@@ -71,7 +65,6 @@ 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 \
@@ -82,7 +75,6 @@ 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,7 +23,6 @@ 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" \
@@ -36,17 +35,13 @@ 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,7 +31,8 @@ if ((git rev-parse --is-shallow-repository) -eq "true") {
git fetch --unshallow # `git describe` won't work on a shallow repo
}
-Write-Output "::group:: Building Zig..."
+Write-Output "Building Zig..."
+
& "$ZIGPREFIXPATH\bin\zig.exe" build `
--prefix "$ZIGINSTALLDIR" `
--search-prefix "$ZIGPREFIXPATH" `
@@ -42,22 +43,21 @@ Write-Output "::group:: Building Zig..."
-Duse-zig-libcxx `
-Dtarget="$TARGET"
CheckLastExitCode
-Write-Output "::endgroup::"
-Write-Output "::group:: zig build test docs..."
+Write-Output " 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 "::group:: zig test std/std.zig..."
+Write-Output "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