diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 48d1fb4351..e3ad9d2134 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: