ci: run rustfmt job only for changes in Rust code

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7325>
This commit is contained in:
Tim-Philipp Müller 2024-08-08 13:27:00 +01:00 committed by GStreamer Marge Bot
parent dcd11f0a10
commit 7135dd19fd

View file

@ -262,6 +262,16 @@ rustfmt:
- export RUSTUP_HOME="/usr/local/rustup"
- export PATH="/usr/local/cargo/bin:$PATH"
- ./scripts/format-rust --check
rules:
- changes:
compare_to: "$GST_UPSTREAM_BRANCH"
paths:
- .gitlab-ci.yml
- .gitlab-image-tags.yml
- subprojects/gstreamer/**/*.rs
- subprojects/gst-examples/**/*.rs
- ci/**/*
- ./scripts/format-rust
commitlint:
extends: