ci: pass --override-lib-dir to emit std lib docs

Otherwise we get errors from conflicting std libs.
This commit is contained in:
Andrew Kelley 2021-01-07 02:58:27 -07:00
parent ee1b370404
commit 87aa052e23

View File

@ -73,7 +73,10 @@ tidy -qe ../zig-cache/langref.html
if [ "${BUILD_REASON}" != "PullRequest" ]; then
# Produce the experimental std lib documentation.
mkdir -p release/docs/std
release/bin/zig test ../lib/std/std.zig -femit-docs=release/docs/std -fno-emit-bin
release/bin/zig test ../lib/std/std.zig \
--override-lib-dir ../lib \
-femit-docs=release/docs/std \
-fno-emit-bin
mv ../LICENSE release/
mv ../zig-cache/langref.html release/docs/