ci: install sccache during docs build

This commit is contained in:
Felix Krull 2019-10-31 14:04:04 +01:00 committed by Colin Walters
parent 2014336b03
commit 53f9c1a3aa
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,9 @@ variables:
OSTREE_VERSION: v2019_3 OSTREE_VERSION: v2019_3
before_script: before_script:
- dnf install -y cargo rust clippy rustfmt git make ostree-devel # only on the Fedora images
- if which dnf > /dev/null; then dnf install -y cargo rust clippy rustfmt git make ostree-devel; fi
# always
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache' - curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
cache: cache:
@ -54,7 +56,6 @@ docs:
--extern-html-root-url gio_sys=https://gtk-rs.org/docs --extern-html-root-url gio_sys=https://gtk-rs.org/docs
--extern-html-root-url glib=https://gtk-rs.org/docs --extern-html-root-url glib=https://gtk-rs.org/docs
--extern-html-root-url gio=https://gtk-rs.org/docs --extern-html-root-url gio=https://gtk-rs.org/docs
before_script: []
script: script:
- make merge-lgpl-docs - make merge-lgpl-docs
- cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS} - cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}