ci: Export cargo/rust paths into the build env

Also disable rust for all default builds unless explicitly enabled

(So it won't be automatically enabled now that rustc is in the env)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4327>
This commit is contained in:
Jordan Petridis 2023-04-03 18:36:37 +03:00 committed by GStreamer Marge Bot
parent 4e8d0b766c
commit 6ce4a12f0b

View file

@ -55,6 +55,7 @@ variables:
-Drtsp_server=enabled
-Dvaapi=enabled
-Dsharp=disabled
-Drs=disabled
-Dgpl=enabled
MESON_GST_WERROR: >
@ -245,6 +246,9 @@ commitlint:
# build setup templates
#
.build_template: &build
- export RUSTUP_HOME="/usr/local/rustup"
- export CARGO_HOME="/usr/local/cargo"
- export PATH="/usr/local/cargo/bin:$PATH"
- date -R
- ci/scripts/handle-subprojects-cache.py subprojects/
- date -R
@ -293,7 +297,6 @@ commitlint:
-Domx=enabled
-Dgst-omx:target=generic
-Ddoc=disabled
-Drs=disabled
${MESON_BUILDTYPE_ARGS}
${MESON_GST_WERROR}