summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2022-08-26 08:43:34 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-09-15 20:11:47 +0000
commit339e5916c6cdfb959e2edb665a55213ed10cf156 (patch)
tree5b17e9059e3595085895d8d3068764ec19367c3a /ci
parenta75f74d2cdea5345cc6cf7ded763b385d1727b49 (diff)
downloadgstreamer-339e5916c6cdfb959e2edb665a55213ed10cf156.tar.gz
Build documentation for rust plugins
- Update the docker image we use, starting using the standard one adding `gtk4-doc` as required by rust plugins - Update the plugins_doc_caches as required, some more plugins are built with the new image - Install ninja from pip as the version from F31 is too old - Avoid buildings all GSreamer plugins when building the doc as it takes time and resources for no good reason - Stop linking to `GInstanceInitFunc` as it is not present in latest GLib documentation, leading to warnings in hotdoc. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/fedora/prepare.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/ci/docker/fedora/prepare.sh b/ci/docker/fedora/prepare.sh
index 0ed4cb6e27..1070d78c57 100644
--- a/ci/docker/fedora/prepare.sh
+++ b/ci/docker/fedora/prepare.sh
@@ -4,7 +4,7 @@ set -eux
# We need them to cleanly build our doc.
sed -i "s/tsflags=nodocs//g" /etc/dnf/dnf.conf
-dnf install -y git-core ninja-build dnf-plugins-core python3-pip
+dnf install -y git-core dnf-plugins-core python3-pip
# Configure git for various usage
git config --global user.email "gstreamer@gstreamer.net"
@@ -41,6 +41,8 @@ dnf install -y \
glslc \
gtk3 \
gtk3-devel \
+ gtk4 \
+ gtk4-devel \
gtest \
gtest-devel \
graphene \
@@ -202,7 +204,10 @@ dnf builddep -y gstreamer1 \
python3-gstreamer1
dnf remove -y meson
-pip3 install meson==0.60.3 hotdoc python-gitlab
+# FIXME: Install ninja from rpm when we update our base image as we fail building
+# documentation with rust plugins as we the version from F31 we hit:
+# `ninja: error: build.ninja:26557: multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you
+pip3 install meson==0.60.3 hotdoc python-gitlab ninja tomli
# Remove gst-devel packages installed by builddep above
@@ -210,13 +215,13 @@ dnf remove -y "gstreamer1*devel"
# FIXME: Why does installing directly with dnf doesn't actually install
# the documentation files?
-dnf download glib2-doc gdk-pixbuf2-devel*x86_64* gtk3-devel-docs
+dnf download glib2-doc gdk-pixbuf2-devel*x86_64* gtk3-devel-docs gtk4-devel-docs
rpm -i --reinstall *.rpm
rm -f *.rpm
# Install Rust
-RUSTUP_VERSION=1.24.3
-RUST_VERSION=1.55.0
+RUSTUP_VERSION=1.25.1
+RUST_VERSION=1.63.0
RUST_ARCH="x86_64-unknown-linux-gnu"
dnf install -y wget
@@ -233,6 +238,7 @@ chmod +x rustup-init;
rm rustup-init;
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
+cargo install cargo-c --version 0.9.12+cargo-0.64
rustup --version
cargo --version
rustc --version