ci: docs: Don't manually install deps & use meson

This commit is contained in:
Veli Tasali 2021-05-04 15:54:29 +03:00 committed by Julian Sparber
parent 389bc11aec
commit 28b18f7cc8

View file

@ -54,20 +54,11 @@ pages:
script: script:
# generate the docs # generate the docs
- dnf update -y - dnf update -y
- dnf install -y openssl-devel cmake - dnf install -y openssl-devel cmake gtk-update-icon-cache
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly - 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
- git clone https://gitlab.gnome.org/GNOME/gtksourceview.git
- cd libadwaita
- meson _build --prefix=/usr -Dtests=false -Dexamples=false -Dvapi=false
- ninja -C _build install
- cd ..
- cd gtksourceview
- meson _build --prefix=/usr -Dgtk_doc=false -Dsysprof=false -Dgir=false -Dvapi=false -Dinstall_tests=false
- ninja -C _build install
- cd ..
- source $HOME/.cargo/env - source $HOME/.cargo/env
- meson _build --prefix=/usr - meson _build --prefix=/usr -Dskip-cargo-build=true
- ninja -C _build install
- cargo doc -p fractal --no-deps - cargo doc -p fractal --no-deps
- mv target/doc/ public - mv target/doc/ public
artifacts: artifacts: