add -Denable-tidy flag and use it in the CI

Eliminates a TODO from the CI scripts; makes it easier to check validity
of html when working on the langref locally.
This commit is contained in:
Andrew Kelley
2024-06-16 20:03:14 -07:00
parent fda2458f6a
commit 651225c2d4
5 changed files with 26 additions and 20 deletions

View File

@@ -61,11 +61,8 @@ stage3-debug/bin/zig build test docs \
-Dstatic-llvm \
-Dtarget=native-native-musl \
--search-prefix "$PREFIX" \
--zig-lib-dir "$PWD/../lib"
# Look for HTML errors.
# TODO: move this to a build.zig flag (-Denable-tidy)
tidy --drop-empty-elements no -qe "../zig-out/doc/langref.html"
--zig-lib-dir "$PWD/../lib" \
-Denable-tidy
# Ensure that updating the wasm binary from this commit will result in a viable build.
stage3-debug/bin/zig build update-zig1