authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-11-29 22:03:30+01:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-11-29 22:03:30+01:00
log6028adda4bc456d95dada6d1b9b91756ae6b5377
treeebeb5533ad3253adc443cab4556a4e1bcf9e29f2
parent1829b6eab8dc52ad2961467e23bfb36055cc8583

ci: add markers for collapsing log sections in GH web UI


5 files changed, 31 insertions(+), 6 deletions(-)

ci/linux/build-aarch64.sh+6
......@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2626rm -rf build-release
2727mkdir build-release
2828cd build-release
29echo "::group:: Build Zig"
2930cmake .. \
3031 -DCMAKE_INSTALL_PREFIX="stage3-release" \
3132 -DCMAKE_PREFIX_PATH="$PREFIX" \
......@@ -41,6 +42,7 @@ unset CC
4142unset CXX
4243
4344ninja install
45echo "::endgroup::"
4446
4547echo "Looking for non-conforming code formatting..."
4648stage3-release/bin/zig fmt --check .. \
......@@ -48,16 +50,20 @@ stage3-release/bin/zig fmt --check .. \
4850 --exclude ../build-release
4951
5052# simultaneously test building self-hosted without LLVM and with 32-bit arm
53echo "::group:: zig build arm32"
5154stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
55echo "::endgroup::"
5256
5357# TODO: add -fqemu back to this line
5458
59echo "::group:: zig build test docs"
5560stage3-release/bin/zig build test docs \
5661 -fwasmtime \
5762 -Dstatic-llvm \
5863 -Dtarget=native-native-musl \
5964 --search-prefix "$PREFIX" \
6065 --zig-lib-dir "$(pwd)/../lib"
66echo "::endgroup::"
6167
6268# Look for HTML errors.
6369tidy --drop-empty-elements no -qe ../zig-cache/langref.html
ci/linux/build-x86_64-debug.sh+6
......@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2626rm -rf build-debug
2727mkdir build-debug
2828cd build-debug
29echo "::group:: Build Zig"
2930cmake .. \
3031 -DCMAKE_INSTALL_PREFIX="stage3-debug" \
3132 -DCMAKE_PREFIX_PATH="$PREFIX" \
......@@ -41,6 +42,7 @@ unset CC
4142unset CXX
4243
4344ninja install
45echo "::endgroup::"
4446
4547echo "Looking for non-conforming code formatting..."
4648stage3-debug/bin/zig fmt --check .. \
......@@ -49,10 +51,13 @@ stage3-debug/bin/zig fmt --check .. \
4951 --exclude ../build-release
5052
5153# simultaneously test building self-hosted without LLVM and with 32-bit arm
54echo "::group:: zig build arm32"
5255stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
56echo "::endgroup::"
5357
5458# building docs disabled due to:
5559# https://github.com/ziglang/zig/issues/13546
60echo "::group:: zig build test"
5661stage3-debug/bin/zig build test \
5762 -fqemu \
5863 -fwasmtime \
......@@ -60,6 +65,7 @@ stage3-debug/bin/zig build test \
6065 -Dtarget=native-native-musl \
6166 --search-prefix "$PREFIX" \
6267 --zig-lib-dir "$(pwd)/../lib"
68echo "::endgroup::"
6369
6470# langref disabled due to:
6571# https://github.com/ziglang/zig/issues/13546
ci/linux/build-x86_64-release.sh+8
......@@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2626rm -rf build-release
2727mkdir build-release
2828cd build-release
29echo "::group:: Build Zig"
2930cmake .. \
3031 -DCMAKE_INSTALL_PREFIX="stage3-release" \
3132 -DCMAKE_PREFIX_PATH="$PREFIX" \
......@@ -41,6 +42,7 @@ unset CC
4142unset CXX
4243
4344ninja install
45echo "::endgroup::"
4446
4547echo "Looking for non-conforming code formatting..."
4648stage3-release/bin/zig fmt --check .. \
......@@ -49,8 +51,11 @@ stage3-release/bin/zig fmt --check .. \
4951 --exclude ../build-release
5052
5153# simultaneously test building self-hosted without LLVM and with 32-bit arm
54echo "::group:: zig build arm32"
5255stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
56echo "::endgroup::"
5357
58echo "::group:: zig build test docs"
5459stage3-release/bin/zig build test docs \
5560 -fqemu \
5661 -fwasmtime \
......@@ -58,6 +63,7 @@ stage3-release/bin/zig build test docs \
5863 -Dtarget=native-native-musl \
5964 --search-prefix "$PREFIX" \
6065 --zig-lib-dir "$(pwd)/../lib"
66echo "::endgroup::"
6167
6268# Look for HTML errors.
6369tidy --drop-empty-elements no -qe ../zig-cache/langref.html
......@@ -65,6 +71,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
6571# Produce the experimental std lib documentation.
6672stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
6773
74echo "::group:: zig build stage4"
6875stage3-release/bin/zig build \
6976 --prefix stage4-release \
7077 -Denable-llvm \
......@@ -75,6 +82,7 @@ stage3-release/bin/zig build \
7582 -Dtarget=$TARGET \
7683 -Duse-zig-libcxx \
7784 -Dversion-string="$(stage3-release/bin/zig version)"
85echo "::endgroup::"
7886
7987# diff returns an error code if the files differ.
8088echo "If the following command fails, it means nondeterminism has been"
ci/macos/build-aarch64.sh+5
......@@ -23,6 +23,7 @@ git fetch --tags
2323
2424mkdir build
2525cd build
26echo "::group:: Build Zig"
2627PATH="$HOME/local/bin:$PATH" cmake .. \
2728 -DCMAKE_INSTALL_PREFIX="stage3-release" \
2829 -DCMAKE_PREFIX_PATH="$PREFIX" \
......@@ -35,13 +36,17 @@ PATH="$HOME/local/bin:$PATH" cmake .. \
3536 -GNinja
3637
3738$HOME/local/bin/ninja install
39echo "::endgroup::"
3840
41
42echo "::group:: zig build test docs"
3943stage3-release/bin/zig build test docs \
4044 --zig-lib-dir "$(pwd)/../lib" \
4145 -Denable-macos-sdk \
4246 -Dstatic-llvm \
4347 -Dskip-non-native \
4448 --search-prefix "$PREFIX"
49echo "::endgroup::"
4550
4651# Produce the experimental std lib documentation.
4752stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
ci/windows/build.ps1+6-6
......@@ -31,8 +31,7 @@ if ((git rev-parse --is-shallow-repository) -eq "true") {
3131 git fetch --unshallow # `git describe` won't work on a shallow repo
3232}
3333
34Write-Output "Building Zig..."
35
34Write-Output "::group:: Building Zig..."
3635& "$ZIGPREFIXPATH\bin\zig.exe" build `
3736 --prefix "$ZIGINSTALLDIR" `
3837 --search-prefix "$ZIGPREFIXPATH" `
......@@ -43,21 +42,22 @@ Write-Output "Building Zig..."
4342 -Duse-zig-libcxx `
4443 -Dtarget="$TARGET"
4544CheckLastExitCode
45Write-Output "::endgroup::"
4646
47Write-Output " zig build test docs..."
48
47Write-Output "::group:: zig build test docs..."
4948& "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
5049 --search-prefix "$ZIGPREFIXPATH" `
5150 -Dstatic-llvm `
5251 -Dskip-non-native `
5352 -Denable-symlinks-windows
5453CheckLastExitCode
54Write-Output "::endgroup::"
5555
5656# Produce the experimental std lib documentation.
57Write-Output "zig test std/std.zig..."
58
57Write-Output "::group:: zig test std/std.zig..."
5958& "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" `
6059 --zig-lib-dir "$ZIGLIBDIR" `
6160 -femit-docs `
6261 -fno-emit-bin
6362CheckLastExitCode
63Write-Output "::endgroup::"
\ No newline at end of file