mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-28 22:41:02 +00:00
ci: make sure version Cargo.toml matches version in meson.build
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1536>
This commit is contained in:
parent
519371240d
commit
00362c5be4
2 changed files with 15 additions and 0 deletions
|
@ -315,6 +315,7 @@ check commits:
|
||||||
script:
|
script:
|
||||||
- ci-fairy check-commits --textwidth 0 --no-signed-off-by
|
- ci-fairy check-commits --textwidth 0 --no-signed-off-by
|
||||||
- ci/check-for-symlinks.sh
|
- ci/check-for-symlinks.sh
|
||||||
|
- ci/check-meson-version.sh
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
extends: '.debian:12-stable'
|
extends: '.debian:12-stable'
|
||||||
|
|
14
ci/check-meson-version.sh
Executable file
14
ci/check-meson-version.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
MESON_VERSION=`head -n5 meson.build | grep ' version\s*:' | sed -e "s/.*version\s*:\s*'//" -e "s/',.*//"`
|
||||||
|
CARGO_VERSION=`cat Cargo.toml | grep -A1 workspace.package | grep ^version | sed -e 's/^version = "\(.*\)"/\1/'`
|
||||||
|
|
||||||
|
echo "gst-plugins-rs version (meson.build) : $MESON_VERSION"
|
||||||
|
echo "gst-plugins-rs version (Cargo.toml) : $CARGO_VERSION"
|
||||||
|
|
||||||
|
if test "x$MESON_VERSION" != "x$CARGO_VERSION"; then
|
||||||
|
echo
|
||||||
|
echo "===> Version mismatch between meson.build and Cargo.toml! <==="
|
||||||
|
echo
|
||||||
|
exit 1;
|
||||||
|
fi
|
Loading…
Reference in a new issue