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