Add CI check for the project's version number
Part of the release process is to update the version number in configure.ac
, Cargo.toml
, and doc/librsvg.toml
(e.g. 2.55.91
). This is easy to keep in sync, but we should have a test for it so that a release doesn't go out with a bad number inadvertently.
For reference, there's already a script that checks Rust versions in ci/check_rust_versions.py
. We could use something similar for the librsvg version number.
-
Write script to check that version is in sync between configure.ac
,Cargo.toml
, anddoc/librsvg.toml
. -
Add a job to the CI under the lint
stage.
I don't care very much if reading the .toml
files is done with a real TOML parser or just with a regex. If the latter, do pay attention to the fact that there are other lines in those files that contain a version
substring.
Edited by Federico Mena Quintero