mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-14 06:11:10 +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:
|
||||
- ci-fairy check-commits --textwidth 0 --no-signed-off-by
|
||||
- ci/check-for-symlinks.sh
|
||||
- ci/check-meson-version.sh
|
||||
|
||||
clippy:
|
||||
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