about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-06-07 19:20:39 -0400
committerTrevor Gross <tgross@intrepidcs.com>2023-06-12 17:31:20 -0400
commit696b0dd472d42c7e71c992bd2e3def2d40fadebb (patch)
treefda72296f6b5e1b778adc948ca9ce38b55e536bf /src/ci/docker
parentdf77afbcaf3365a32066a8ca4a00ae6fc9a69647 (diff)
downloadrust-696b0dd472d42c7e71c992bd2e3def2d40fadebb.tar.gz
rust-696b0dd472d42c7e71c992bd2e3def2d40fadebb.zip
Publish docs as github artifacts during CI
This PR saves library docs as github artifacts so they can be easily
viewed for review.

Discussed in <https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Building.20docs.20for.20PR.20CI>
Diffstat (limited to 'src/ci/docker')
-rw-r--r--src/ci/docker/host-x86_64/mingw-check/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ci/docker/host-x86_64/mingw-check/Dockerfile b/src/ci/docker/host-x86_64/mingw-check/Dockerfile
index 515890aef8d..85a9a5d3375 100644
--- a/src/ci/docker/host-x86_64/mingw-check/Dockerfile
+++ b/src/ci/docker/host-x86_64/mingw-check/Dockerfile
@@ -45,6 +45,9 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
            python3 ../x.py test --stage 0 src/tools/compiletest && \
            python3 ../x.py test --stage 0 core alloc std test proc_macro && \
            # Build both public and internal documentation.
+           RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 library && \
+           mkdir -p /checkout/obj/staging/doc && \
+           cp -r build/x86_64-unknown-linux-gnu/doc /checkout/obj/staging && \
            RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 compiler && \
            RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 library/test && \
            /scripts/validate-toolstate.sh && \