authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-22 15:13:42-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 14:38:51-07:00
log60242d621078a4d41baf987709b89d4759dd3aac
tree05c8f4005d45e1edcd6878fe2c5b74d02faf158d
parent7d812dc1c797652a77c25dbc9d9546dbb57c2aaf

CI: disable building docs on x86_64-linux debug

See tracking issue #13546

4 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"
6161
62# Look for HTML errors.62# Look for HTML errors.
63tidy --drop-empty-elements no -qe zig-cache/langref.html63tidy --drop-empty-elements no -qe ../zig-cache/langref.html
6464
65# Produce the experimental std lib documentation.65# Produce the experimental std lib documentation.
66mkdir -p "stage3-release/doc/std"
67stage3-release/bin/zig test ../lib/std/std.zig \66stage3-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)"
12ARCH="$(uname -m)"12ARCH="$(uname -m)"
13TARGET="$ARCH-linux-musl"13TARGET="$ARCH-linux-musl"
14MCPU="baseline"14MCPU="baseline"
15CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.11.0-dev.256+271cc52a1"
16PREFIX="$WORKDIR/deps/$CACHE_BASENAME"
17ZIG="$PREFIX/bin/zig"
18
19OLD_ZIG_VERSION="0.11.0-dev.256+271cc52a1"
20wget "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz"
21tar xf "$CACHE_BASENAME.tar.xz"
22
23# Make the `zig version` number consistent.
24# This will affect the cmake command below.
25cd "$ZIGDIR"
26git config core.abbrev 9
27git fetch --unshallow || true
28git fetch --tags
29
30export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
31export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
32
33mkdir "$REL_SRC_BUILD"
34cd "$REL_SRC_BUILD"
35cmake .. \
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.
46unset CC
47unset CXX
48
49ninja install
50
51ZIG_VERSION="$(stage3-release/bin/zig version)"
5215
53git clone https://github.com/ziglang/zig-bootstrap16git clone https://github.com/ziglang/zig-bootstrap
54BOOTSTRAP_SRC="$WORKDIR/zig-bootstrap"17BOOTSTRAP_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 arm51# simultaneously test building self-hosted without LLVM and with 32-bit arm
52stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf52stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
5353
54stage3-debug/bin/zig build test docs \54# building docs disabled due to:
55# https://github.com/ziglang/zig/issues/13546
56stage3-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"
6163
62# Look for HTML errors.64# langref disabled due to:
63tidy --drop-empty-elements no -qe zig-cache/langref.html65# https://github.com/ziglang/zig/issues/13546
66## Look for HTML errors.
67#tidy --drop-empty-elements no -qe ../zig-cache/langref.html
6468
65# Produce the experimental std lib documentation.69# Produce the experimental std lib documentation.
66mkdir -p "stage3-debug/doc/std"
67stage3-debug/bin/zig test ../lib/std/std.zig \70stage3-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"
6161
62# Look for HTML errors.62# Look for HTML errors.
63tidy --drop-empty-elements no -qe zig-cache/langref.html63tidy --drop-empty-elements no -qe ../zig-cache/langref.html
6464
65# Produce the experimental std lib documentation.65# Produce the experimental std lib documentation.
66mkdir -p "stage3-release/doc/std"
67stage3-release/bin/zig test ../lib/std/std.zig \66stage3-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"
7170