[fractal/fractal-next] ci: docs: Publish on GitLab Pages
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] ci: docs: Publish on GitLab Pages
- Date: Thu, 29 Apr 2021 09:55:30 +0000 (UTC)
commit c797001d7b32e52c006173f0a5cea7a651480d91
Author: Veli Tasali <veli tasali gmail com>
Date: Sat Apr 24 18:08:53 2021 +0300
ci: docs: Publish on GitLab Pages
This makes necessary changes to the CI
configuration to publish docs on GitLab Pages.
.gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4320cd34..496435a6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,3 +37,36 @@ rustfmt:
- rustc -Vv && cargo -Vv
- cargo fmt --version
- cargo fmt --all -- --color=always --check
+
+pages:
+ image: "ghcr.io/gtk-rs/gtk4-rs/gtk4:latest"
+ variables:
+ RUSTDOCFLAGS: >
+ -Z unstable-options
+ --extern-html-root-url=gio=https://gtk-rs.org/gtk-rs/git/docs
+ --extern-html-root-url=gsk4=https://gtk-rs.org/gtk4-rs/git/docs
+ --extern-html-root-url=gdk4=https://gtk-rs.org/gtk4-rs/git/docs
+ --extern-html-root-url=gtk4=https://gtk-rs.org/gtk4-rs/git/docs
+ --extern-html-root-url=glib=https://gtk-rs.org/gtk-rs/git/docs
+ --extern-html-root-url=libadwaita=https://world.pages.gitlab.gnome.org/Rust/libadwaita-rs/libadwaita/
+ --extern-html-root-url=matrix-sdk=https://docs.rs/matrix-sdk
+ script:
+ # generate the docs
+ - dnf update -y
+ - dnf install -y openssl-devel cmake
+ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
--default-toolchain nightly
+ - git clone https://gitlab.gnome.org/GNOME/libadwaita.git
+ - cd libadwaita
+ - meson _build --prefix=/usr -Dvapi=false
+ - ninja -C _build install
+ - cd ..
+ - source $HOME/.cargo/env
+ - meson _build --prefix=/usr
+ - cargo doc -p fractal --no-deps
+ - mv target/doc/ public
+ artifacts:
+ paths:
+ - public
+ only:
+ refs:
+ - fractal-next
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]