[librsvg: 4/10] CI: only install grcov in the stable image




commit 738ee8e3f6988d1f5be371b2b4b4d49c51ca1d93
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Sep 6 10:57:14 2022 -0500

    CI: only install grcov in the stable image
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/741>

 ci/container_builds.yml | 1 +
 ci/install-grcov.sh     | 8 ++++++++
 ci/install-rust.sh      | 4 ----
 3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/ci/container_builds.yml b/ci/container_builds.yml
index 426dd1a19..72aac9ab3 100644
--- a/ci/container_builds.yml
+++ b/ci/container_builds.yml
@@ -33,6 +33,7 @@ variables:
     FDO_DISTRIBUTION_EXEC: >-
       bash ci/install-rust.sh ${RUST_STABLE} x86_64-unknown-linux-gnu &&
       bash ci/install-rust-tools.sh &&
+      bash ci/install-grcov.sh &&
       pip3 install gi-docgen sphinx sphinx_rtd_theme
 
 .container.opensuse@x86_64.minimum:
diff --git a/ci/install-grcov.sh b/ci/install-grcov.sh
new file mode 100644
index 000000000..436dc85e3
--- /dev/null
+++ b/ci/install-grcov.sh
@@ -0,0 +1,8 @@
+source ./ci/env.sh
+
+set -eu
+export CARGO_HOME='/usr/local/cargo'
+
+# Coverage tools
+cargo install grcov
+rustup component add llvm-tools-preview
diff --git a/ci/install-rust.sh b/ci/install-rust.sh
index 4921de9d6..907c66360 100755
--- a/ci/install-rust.sh
+++ b/ci/install-rust.sh
@@ -19,10 +19,6 @@ rustup --version
 cargo --version
 rustc --version
 
-# Coverage tools
-cargo install grcov
-rustup component add llvm-tools-preview
-
 if [ "$RUST_VERSION" = "nightly" ]; then
   # Documentation tools
   cargo install --force rustdoc-stripper


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]