| author | |
| committer | |
| log | 6028adda4bc456d95dada6d1b9b91756ae6b5377 |
| tree | ebeb5533ad3253adc443cab4556a4e1bcf9e29f2 |
| parent | 1829b6eab8dc52ad2961467e23bfb36055cc8583 |
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" | ... | @@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 26 | rm -rf build-release | 26 | rm -rf build-release |
| 27 | mkdir build-release | 27 | mkdir build-release |
| 28 | cd build-release | 28 | cd build-release |
| 29 | echo "::group:: Build Zig" | ||
| 29 | cmake .. \ | 30 | cmake .. \ |
| 30 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 31 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 31 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 32 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -41,6 +42,7 @@ unset CC | ... | @@ -41,6 +42,7 @@ unset CC |
| 41 | unset CXX | 42 | unset CXX |
| 42 | 43 | ||
| 43 | ninja install | 44 | ninja install |
| 45 | echo "::endgroup::" | ||
| 44 | 46 | ||
| 45 | echo "Looking for non-conforming code formatting..." | 47 | echo "Looking for non-conforming code formatting..." |
| 46 | stage3-release/bin/zig fmt --check .. \ | 48 | stage3-release/bin/zig fmt --check .. \ |
| ... | @@ -48,16 +50,20 @@ stage3-release/bin/zig fmt --check .. \ | ... | @@ -48,16 +50,20 @@ stage3-release/bin/zig fmt --check .. \ |
| 48 | --exclude ../build-release | 50 | --exclude ../build-release |
| 49 | 51 | ||
| 50 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | 52 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 53 | echo "::group:: zig build arm32" | ||
| 51 | stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf | 54 | stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf |
| 55 | echo "::endgroup::" | ||
| 52 | 56 | ||
| 53 | # TODO: add -fqemu back to this line | 57 | # TODO: add -fqemu back to this line |
| 54 | 58 | ||
| 59 | echo "::group:: zig build test docs" | ||
| 55 | stage3-release/bin/zig build test docs \ | 60 | stage3-release/bin/zig build test docs \ |
| 56 | -fwasmtime \ | 61 | -fwasmtime \ |
| 57 | -Dstatic-llvm \ | 62 | -Dstatic-llvm \ |
| 58 | -Dtarget=native-native-musl \ | 63 | -Dtarget=native-native-musl \ |
| 59 | --search-prefix "$PREFIX" \ | 64 | --search-prefix "$PREFIX" \ |
| 60 | --zig-lib-dir "$(pwd)/../lib" | 65 | --zig-lib-dir "$(pwd)/../lib" |
| 66 | echo "::endgroup::" | ||
| 61 | 67 | ||
| 62 | # Look for HTML errors. | 68 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html | 69 | tidy --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" | ... | @@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 26 | rm -rf build-debug | 26 | rm -rf build-debug |
| 27 | mkdir build-debug | 27 | mkdir build-debug |
| 28 | cd build-debug | 28 | cd build-debug |
| 29 | echo "::group:: Build Zig" | ||
| 29 | cmake .. \ | 30 | cmake .. \ |
| 30 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 31 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| 31 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 32 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -41,6 +42,7 @@ unset CC | ... | @@ -41,6 +42,7 @@ unset CC |
| 41 | unset CXX | 42 | unset CXX |
| 42 | 43 | ||
| 43 | ninja install | 44 | ninja install |
| 45 | echo "::endgroup::" | ||
| 44 | 46 | ||
| 45 | echo "Looking for non-conforming code formatting..." | 47 | echo "Looking for non-conforming code formatting..." |
| 46 | stage3-debug/bin/zig fmt --check .. \ | 48 | stage3-debug/bin/zig fmt --check .. \ |
| ... | @@ -49,10 +51,13 @@ stage3-debug/bin/zig fmt --check .. \ | ... | @@ -49,10 +51,13 @@ stage3-debug/bin/zig fmt --check .. \ |
| 49 | --exclude ../build-release | 51 | --exclude ../build-release |
| 50 | 52 | ||
| 51 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | 53 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 54 | echo "::group:: zig build arm32" | ||
| 52 | stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf | 55 | stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf |
| 56 | echo "::endgroup::" | ||
| 53 | 57 | ||
| 54 | # building docs disabled due to: | 58 | # building docs disabled due to: |
| 55 | # https://github.com/ziglang/zig/issues/13546 | 59 | # https://github.com/ziglang/zig/issues/13546 |
| 60 | echo "::group:: zig build test" | ||
| 56 | stage3-debug/bin/zig build test \ | 61 | stage3-debug/bin/zig build test \ |
| 57 | -fqemu \ | 62 | -fqemu \ |
| 58 | -fwasmtime \ | 63 | -fwasmtime \ |
| ... | @@ -60,6 +65,7 @@ stage3-debug/bin/zig build test \ | ... | @@ -60,6 +65,7 @@ stage3-debug/bin/zig build test \ |
| 60 | -Dtarget=native-native-musl \ | 65 | -Dtarget=native-native-musl \ |
| 61 | --search-prefix "$PREFIX" \ | 66 | --search-prefix "$PREFIX" \ |
| 62 | --zig-lib-dir "$(pwd)/../lib" | 67 | --zig-lib-dir "$(pwd)/../lib" |
| 68 | echo "::endgroup::" | ||
| 63 | 69 | ||
| 64 | # langref disabled due to: | 70 | # langref disabled due to: |
| 65 | # https://github.com/ziglang/zig/issues/13546 | 71 | # 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" | ... | @@ -26,6 +26,7 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 26 | rm -rf build-release | 26 | rm -rf build-release |
| 27 | mkdir build-release | 27 | mkdir build-release |
| 28 | cd build-release | 28 | cd build-release |
| 29 | echo "::group:: Build Zig" | ||
| 29 | cmake .. \ | 30 | cmake .. \ |
| 30 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 31 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 31 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 32 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -41,6 +42,7 @@ unset CC | ... | @@ -41,6 +42,7 @@ unset CC |
| 41 | unset CXX | 42 | unset CXX |
| 42 | 43 | ||
| 43 | ninja install | 44 | ninja install |
| 45 | echo "::endgroup::" | ||
| 44 | 46 | ||
| 45 | echo "Looking for non-conforming code formatting..." | 47 | echo "Looking for non-conforming code formatting..." |
| 46 | stage3-release/bin/zig fmt --check .. \ | 48 | stage3-release/bin/zig fmt --check .. \ |
| ... | @@ -49,8 +51,11 @@ stage3-release/bin/zig fmt --check .. \ | ... | @@ -49,8 +51,11 @@ stage3-release/bin/zig fmt --check .. \ |
| 49 | --exclude ../build-release | 51 | --exclude ../build-release |
| 50 | 52 | ||
| 51 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | 53 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 54 | echo "::group:: zig build arm32" | ||
| 52 | stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf | 55 | stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf |
| 56 | echo "::endgroup::" | ||
| 53 | 57 | ||
| 58 | echo "::group:: zig build test docs" | ||
| 54 | stage3-release/bin/zig build test docs \ | 59 | stage3-release/bin/zig build test docs \ |
| 55 | -fqemu \ | 60 | -fqemu \ |
| 56 | -fwasmtime \ | 61 | -fwasmtime \ |
| ... | @@ -58,6 +63,7 @@ stage3-release/bin/zig build test docs \ | ... | @@ -58,6 +63,7 @@ stage3-release/bin/zig build test docs \ |
| 58 | -Dtarget=native-native-musl \ | 63 | -Dtarget=native-native-musl \ |
| 59 | --search-prefix "$PREFIX" \ | 64 | --search-prefix "$PREFIX" \ |
| 60 | --zig-lib-dir "$(pwd)/../lib" | 65 | --zig-lib-dir "$(pwd)/../lib" |
| 66 | echo "::endgroup::" | ||
| 61 | 67 | ||
| 62 | # Look for HTML errors. | 68 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html | 69 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| ... | @@ -65,6 +71,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html | ... | @@ -65,6 +71,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 65 | # Produce the experimental std lib documentation. | 71 | # Produce the experimental std lib documentation. |
| 66 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 72 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib |
| 67 | 73 | ||
| 74 | echo "::group:: zig build stage4" | ||
| 68 | stage3-release/bin/zig build \ | 75 | stage3-release/bin/zig build \ |
| 69 | --prefix stage4-release \ | 76 | --prefix stage4-release \ |
| 70 | -Denable-llvm \ | 77 | -Denable-llvm \ |
| ... | @@ -75,6 +82,7 @@ stage3-release/bin/zig build \ | ... | @@ -75,6 +82,7 @@ stage3-release/bin/zig build \ |
| 75 | -Dtarget=$TARGET \ | 82 | -Dtarget=$TARGET \ |
| 76 | -Duse-zig-libcxx \ | 83 | -Duse-zig-libcxx \ |
| 77 | -Dversion-string="$(stage3-release/bin/zig version)" | 84 | -Dversion-string="$(stage3-release/bin/zig version)" |
| 85 | echo "::endgroup::" | ||
| 78 | 86 | ||
| 79 | # diff returns an error code if the files differ. | 87 | # diff returns an error code if the files differ. |
| 80 | echo "If the following command fails, it means nondeterminism has been" | 88 | echo "If the following command fails, it means nondeterminism has been" |
ci/macos/build-aarch64.sh+5| ... | @@ -23,6 +23,7 @@ git fetch --tags | ... | @@ -23,6 +23,7 @@ git fetch --tags |
| 23 | 23 | ||
| 24 | mkdir build | 24 | mkdir build |
| 25 | cd build | 25 | cd build |
| 26 | echo "::group:: Build Zig" | ||
| 26 | PATH="$HOME/local/bin:$PATH" cmake .. \ | 27 | PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 27 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 28 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 28 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 29 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -35,13 +36,17 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ | ... | @@ -35,13 +36,17 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 35 | -GNinja | 36 | -GNinja |
| 36 | 37 | ||
| 37 | $HOME/local/bin/ninja install | 38 | $HOME/local/bin/ninja install |
| 39 | echo "::endgroup::" | ||
| 38 | 40 | ||
| 41 | |||
| 42 | echo "::group:: zig build test docs" | ||
| 39 | stage3-release/bin/zig build test docs \ | 43 | stage3-release/bin/zig build test docs \ |
| 40 | --zig-lib-dir "$(pwd)/../lib" \ | 44 | --zig-lib-dir "$(pwd)/../lib" \ |
| 41 | -Denable-macos-sdk \ | 45 | -Denable-macos-sdk \ |
| 42 | -Dstatic-llvm \ | 46 | -Dstatic-llvm \ |
| 43 | -Dskip-non-native \ | 47 | -Dskip-non-native \ |
| 44 | --search-prefix "$PREFIX" | 48 | --search-prefix "$PREFIX" |
| 49 | echo "::endgroup::" | ||
| 45 | 50 | ||
| 46 | # Produce the experimental std lib documentation. | 51 | # Produce the experimental std lib documentation. |
| 47 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 52 | stage3-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") { | ... | @@ -31,8 +31,7 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { |
| 31 | git fetch --unshallow # `git describe` won't work on a shallow repo | 31 | git fetch --unshallow # `git describe` won't work on a shallow repo |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | Write-Output "Building Zig..." | 34 | Write-Output "::group:: Building Zig..." |
| 35 | |||
| 36 | & "$ZIGPREFIXPATH\bin\zig.exe" build ` | 35 | & "$ZIGPREFIXPATH\bin\zig.exe" build ` |
| 37 | --prefix "$ZIGINSTALLDIR" ` | 36 | --prefix "$ZIGINSTALLDIR" ` |
| 38 | --search-prefix "$ZIGPREFIXPATH" ` | 37 | --search-prefix "$ZIGPREFIXPATH" ` |
| ... | @@ -43,21 +42,22 @@ Write-Output "Building Zig..." | ... | @@ -43,21 +42,22 @@ Write-Output "Building Zig..." |
| 43 | -Duse-zig-libcxx ` | 42 | -Duse-zig-libcxx ` |
| 44 | -Dtarget="$TARGET" | 43 | -Dtarget="$TARGET" |
| 45 | CheckLastExitCode | 44 | CheckLastExitCode |
| 45 | Write-Output "::endgroup::" | ||
| 46 | 46 | ||
| 47 | Write-Output " zig build test docs..." | 47 | Write-Output "::group:: zig build test docs..." |
| 48 | |||
| 49 | & "$ZIGINSTALLDIR\bin\zig.exe" build test docs ` | 48 | & "$ZIGINSTALLDIR\bin\zig.exe" build test docs ` |
| 50 | --search-prefix "$ZIGPREFIXPATH" ` | 49 | --search-prefix "$ZIGPREFIXPATH" ` |
| 51 | -Dstatic-llvm ` | 50 | -Dstatic-llvm ` |
| 52 | -Dskip-non-native ` | 51 | -Dskip-non-native ` |
| 53 | -Denable-symlinks-windows | 52 | -Denable-symlinks-windows |
| 54 | CheckLastExitCode | 53 | CheckLastExitCode |
| 54 | Write-Output "::endgroup::" | ||
| 55 | 55 | ||
| 56 | # Produce the experimental std lib documentation. | 56 | # Produce the experimental std lib documentation. |
| 57 | Write-Output "zig test std/std.zig..." | 57 | Write-Output "::group:: zig test std/std.zig..." |
| 58 | |||
| 59 | & "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" ` | 58 | & "$ZIGINSTALLDIR\bin\zig.exe" test "$ZIGLIBDIR\std\std.zig" ` |
| 60 | --zig-lib-dir "$ZIGLIBDIR" ` | 59 | --zig-lib-dir "$ZIGLIBDIR" ` |
| 61 | -femit-docs ` | 60 | -femit-docs ` |
| 62 | -fno-emit-bin | 61 | -fno-emit-bin |
| 63 | CheckLastExitCode | 62 | CheckLastExitCode |
| 63 | Write-Output "::endgroup::" | ||
| \ No newline at end of file | |||