| author | |
| committer | |
| log | 60242d621078a4d41baf987709b89d4759dd3aac |
| tree | 05c8f4005d45e1edcd6878fe2c5b74d02faf158d |
| parent | 7d812dc1c797652a77c25dbc9d9546dbb57c2aaf |
See tracking issue #135464 files changed, 12 insertions(+), 48 deletions(-)
ci/linux/build-aarch64.sh+2-3| ... | @@ -60,11 +60,10 @@ stage3-release/bin/zig build test docs \ | ... | @@ -60,11 +60,10 @@ stage3-release/bin/zig build test docs \ |
| 60 | --zig-lib-dir "$(pwd)/../lib" | 60 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 61 | ||
| 62 | # Look for HTML errors. | 62 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 64 | 64 | ||
| 65 | # Produce the experimental std lib documentation. | 65 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-release/doc/std" | ||
| 67 | stage3-release/bin/zig test ../lib/std/std.zig \ | 66 | stage3-release/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-release/doc/std \ | 67 | -femit-docs \ |
| 69 | -fno-emit-bin \ | 68 | -fno-emit-bin \ |
| 70 | --zig-lib-dir "$(pwd)/../lib" | 69 | --zig-lib-dir "$(pwd)/../lib" |
ci/linux/build-tarballs.sh-37| ... | @@ -12,43 +12,6 @@ WORKDIR="$(pwd)" | ... | @@ -12,43 +12,6 @@ WORKDIR="$(pwd)" |
| 12 | ARCH="$(uname -m)" | 12 | ARCH="$(uname -m)" |
| 13 | TARGET="$ARCH-linux-musl" | 13 | TARGET="$ARCH-linux-musl" |
| 14 | MCPU="baseline" | 14 | MCPU="baseline" |
| 15 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.11.0-dev.256+271cc52a1" | ||
| 16 | PREFIX="$WORKDIR/deps/$CACHE_BASENAME" | ||
| 17 | ZIG="$PREFIX/bin/zig" | ||
| 18 | |||
| 19 | OLD_ZIG_VERSION="0.11.0-dev.256+271cc52a1" | ||
| 20 | wget "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz" | ||
| 21 | tar xf "$CACHE_BASENAME.tar.xz" | ||
| 22 | |||
| 23 | # Make the `zig version` number consistent. | ||
| 24 | # This will affect the cmake command below. | ||
| 25 | cd "$ZIGDIR" | ||
| 26 | git config core.abbrev 9 | ||
| 27 | git fetch --unshallow || true | ||
| 28 | git fetch --tags | ||
| 29 | |||
| 30 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 31 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 32 | |||
| 33 | mkdir "$REL_SRC_BUILD" | ||
| 34 | cd "$REL_SRC_BUILD" | ||
| 35 | cmake .. \ | ||
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | ||
| 37 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | ||
| 38 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 39 | -DZIG_TARGET_TRIPLE="$TARGET" \ | ||
| 40 | -DZIG_TARGET_MCPU="$MCPU" \ | ||
| 41 | -DZIG_STATIC=ON \ | ||
| 42 | -GNinja | ||
| 43 | |||
| 44 | # Now cmake will use zig as the C/C++ compiler. We reset the environment variables | ||
| 45 | # so that installation and testing do not get affected by them. | ||
| 46 | unset CC | ||
| 47 | unset CXX | ||
| 48 | |||
| 49 | ninja install | ||
| 50 | |||
| 51 | ZIG_VERSION="$(stage3-release/bin/zig version)" | ||
| 52 | 15 | ||
| 53 | git clone https://github.com/ziglang/zig-bootstrap | 16 | git clone https://github.com/ziglang/zig-bootstrap |
| 54 | BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap" | 17 | BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap" |
ci/linux/build-x86_64-debug.sh+8-5| ... | @@ -51,7 +51,9 @@ stage3-debug/bin/zig fmt --check .. \ | ... | @@ -51,7 +51,9 @@ stage3-debug/bin/zig fmt --check .. \ |
| 51 | # simultaneously test building self-hosted without LLVM and with 32-bit arm | 51 | # simultaneously test building self-hosted without LLVM and with 32-bit arm |
| 52 | stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf | 52 | stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf |
| 53 | 53 | ||
| 54 | stage3-debug/bin/zig build test docs \ | 54 | # building docs disabled due to: |
| 55 | # https://github.com/ziglang/zig/issues/13546 | ||
| 56 | stage3-debug/bin/zig build test \ | ||
| 55 | -fqemu \ | 57 | -fqemu \ |
| 56 | -fwasmtime \ | 58 | -fwasmtime \ |
| 57 | -Dstatic-llvm \ | 59 | -Dstatic-llvm \ |
| ... | @@ -59,12 +61,13 @@ stage3-debug/bin/zig build test docs \ | ... | @@ -59,12 +61,13 @@ stage3-debug/bin/zig build test docs \ |
| 59 | --search-prefix "$PREFIX" \ | 61 | --search-prefix "$PREFIX" \ |
| 60 | --zig-lib-dir "$(pwd)/../lib" | 62 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 63 | ||
| 62 | # Look for HTML errors. | 64 | # langref disabled due to: |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | 65 | # https://github.com/ziglang/zig/issues/13546 |
| 66 | ## Look for HTML errors. | ||
| 67 | #tidy --drop-empty-elements no -qe ../zig-cache/langref.html | ||
| 64 | 68 | ||
| 65 | # Produce the experimental std lib documentation. | 69 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-debug/doc/std" | ||
| 67 | stage3-debug/bin/zig test ../lib/std/std.zig \ | 70 | stage3-debug/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-debug/doc/std \ | 71 | -femit-docs \ |
| 69 | -fno-emit-bin \ | 72 | -fno-emit-bin \ |
| 70 | --zig-lib-dir "$(pwd)/../lib" | 73 | --zig-lib-dir "$(pwd)/../lib" |
ci/linux/build-x86_64-release.sh+2-3| ... | @@ -60,12 +60,11 @@ stage3-release/bin/zig build test docs \ | ... | @@ -60,12 +60,11 @@ stage3-release/bin/zig build test docs \ |
| 60 | --zig-lib-dir "$(pwd)/../lib" | 60 | --zig-lib-dir "$(pwd)/../lib" |
| 61 | 61 | ||
| 62 | # Look for HTML errors. | 62 | # Look for HTML errors. |
| 63 | tidy --drop-empty-elements no -qe zig-cache/langref.html | 63 | tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 64 | 64 | ||
| 65 | # Produce the experimental std lib documentation. | 65 | # Produce the experimental std lib documentation. |
| 66 | mkdir -p "stage3-release/doc/std" | ||
| 67 | stage3-release/bin/zig test ../lib/std/std.zig \ | 66 | stage3-release/bin/zig test ../lib/std/std.zig \ |
| 68 | -femit-docs=stage3-release/doc/std \ | 67 | -femit-docs \ |
| 69 | -fno-emit-bin \ | 68 | -fno-emit-bin \ |
| 70 | --zig-lib-dir "$(pwd)/../lib" | 69 | --zig-lib-dir "$(pwd)/../lib" |
| 71 | 70 |