From b83b8c8675ad68dc793269ad42574adb13a80d48 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 30 Mar 2021 12:05:45 +0000 Subject: [PATCH] ci: link to external dependencies instead of building them for docs --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e13361b4e..904d7f996 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,8 @@ include: variables: FDO_UPSTREAM_REPO: gstreamer/gstreamer-rs + RUST_DOCS_FLAGS: "--extern-html-root-url=glib=https://gtk-rs.org/gtk-rs/ --extern-html-root-url=gio=https://gtk-rs.org/gtk-rs/ --extern-html-root-url=muldiv=https://docs.rs/muldiv/1.0.0/muldiv/ -Z unstable-options" + stages: - "container-base" @@ -449,18 +451,19 @@ docs: - | for crate in gstreamer* gstreamer-gl/{egl,wayland,x11}; do pushd $crate - cargo +nightly doc --color=always --features=dox,embed-lgpl-docs + RUSTDOCFLAGS="$RUST_DOCS_FLAGS" cargo +nightly doc --color=always --features=dox,embed-lgpl-docs --no-deps popd done pages: extends: .img-nightly stage: 'deploy' + script: - | for crate in gstreamer* gstreamer-gl/{egl,wayland,x11}; do cd $crate - cargo +nightly doc --color=always --features=dox,embed-lgpl-docs + RUSTDOCFLAGS="$RUST_DOCS_FLAGS" cargo +nightly doc --color=always --features=dox,embed-lgpl-docs --no-deps cd .. done - mv target/doc public/