2023-05-31 14:52:42 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Run "cargo-semver-checks" on each of our crates, with the "full" features
|
|
|
|
# set, comparing against a provided arti version.
|
|
|
|
#
|
2023-06-29 14:14:07 +01:00
|
|
|
# You will need cargo semver-checks >= 0.22.1.
|
2023-05-31 14:52:42 +01:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [ -z "${1-}" ]; then
|
|
|
|
echo "Usage: $0 [git-tag]"
|
|
|
|
echo "Script will run cargo-semver-checks on changes since [git-tag]."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
LAST_VERSION="$1"
|
|
|
|
|
2023-06-29 14:14:07 +01:00
|
|
|
cargo semver-checks \
|
|
|
|
--only-explicit-features \
|
|
|
|
--workspace \
|
|
|
|
--features full \
|
|
|
|
--baseline-rev "$LAST_VERSION"
|