mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
fix(ci): complete umbrella check with zepter propagate-features
Generator intentionally emits empty feature lists (filled by Zepter). Without running propagate-features after generate, diff always exists. Add zepter run propagate-features step so check reflects actual state.
This commit is contained in:
1 parent
5d1cbbac15
commit
2bbe41e97d
1 file changed
+4
-2
+4
-2
@@ -115,9 +115,10 @@ test-rust-features:
|
||||
|
||||
check-umbrella:
|
||||
stage: quick-checks
|
||||
allow_failure: true
|
||||
script:
|
||||
- pip3 install "cargo-workspace>=1.2.4" toml --quiet
|
||||
- cargo install zepter@1.82.1 --force --quiet
|
||||
- export PATH="$CARGO_HOME/bin:$PATH"
|
||||
- git config --global --add safe.directory '*'
|
||||
- |
|
||||
UMBRELLA_VERSION=$(cargo metadata --format-version=1 | \
|
||||
@@ -125,10 +126,11 @@ check-umbrella:
|
||||
print(next(p['version'] for p in pkgs if p['manifest_path'].endswith('umbrella/Cargo.toml')))")
|
||||
echo "Umbrella version: $UMBRELLA_VERSION"
|
||||
python3 scripts/generate-umbrella.py --sdk . --version "$UMBRELLA_VERSION"
|
||||
zepter run propagate-features
|
||||
cargo +nightly fmt -p pezkuwi-sdk
|
||||
- |
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "❌ Umbrella crate is out of sync. Run: python3 scripts/generate-umbrella.py --sdk . --version <VERSION>"
|
||||
echo "❌ Umbrella crate is out of sync. Run: python3 scripts/generate-umbrella.py --sdk . --version <VERSION> && zepter run propagate-features"
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user