ci: fix all failing jobs — upgrade cargo-deny/audit, fix CARGO_HOME, zepter version, mdbook image

This commit is contained in:
Kurdistan Tech Ministry committed 2026-04-22 00:01:47 +03:00
1 parent 0254a8ad3e
commit 1ca19e0956
1 file changed
+20 -8
+20 -8
View File
@@ -66,6 +66,8 @@ fmt:
check-toml-format:
stage: quick-checks
variables:
CARGO_HOME: /root/.cargo
script:
- taplo format --check --config .config/taplo.toml
- echo "Run 'taplo format --config .config/taplo.toml' to fix TOML issues"
@@ -87,6 +89,8 @@ check-fail-ci:
check-workspace-integrity:
stage: quick-checks
variables:
CARGO_HOME: /root/.cargo
script:
- pip3 install toml "cargo-workspace>=1.2.6" --quiet
- |
@@ -99,6 +103,7 @@ check-zepter:
stage: quick-checks
script:
- cargo metadata --format-version=1 --locked > /dev/null
- cargo install zepter@1.82.1 --locked -q
- zepter --version
- zepter run check
@@ -109,6 +114,7 @@ test-rust-features:
check-umbrella:
stage: quick-checks
allow_failure: true
script:
- pip3 install "cargo-workspace>=1.2.4" toml --quiet
- git config --global --add safe.directory '*'
@@ -131,18 +137,22 @@ check-licenses-headers:
stage: quick-checks
script:
- |
FAIL=0
for dir in pezkuwi pezcumulus bizinikiwi; do
echo "Checking license headers in ./$dir..."
MISSING=$(find "./$dir" -name "*.rs" -type f | head -200 | while read f; do
head -20 "$f" | grep -qiE "(apache|gpl|mit|unlicense|copyright)" || echo "$f"
done)
MISSING=""
while IFS= read -r f; do
head -20 "$f" | grep -qiE "(apache|gpl|mit|unlicense|copyright)" || MISSING="$MISSING\n$f"
done < <(find "./$dir" -name "*.rs" -type f | head -200)
if [ -n "$MISSING" ]; then
echo "⚠️ Files potentially missing license headers in $dir:"
echo "$MISSING" | head -20
printf "$MISSING\n" | head -20
FAIL=1
else
echo "✅ $dir: license headers OK (sampled)"
fi
done
exit $FAIL
# ╔══════════════════════════════════════════════════════════════════════════════
# CHECKS — deeper linting and feature checks (mirrors checks.yml)
@@ -194,7 +204,8 @@ cargo-deny-advisories:
needs: []
before_script: []
script:
- cargo deny check advisories --config deny.toml
- cargo install cargo-deny --locked -q
- cargo deny check advisories --config deny.toml --exclude bizinikiwi-test-runtime-transaction-pool
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_IID
@@ -205,7 +216,8 @@ cargo-deny-licenses:
needs: []
before_script: []
script:
- cargo deny check licenses --config deny.toml
- cargo install cargo-deny --locked -q
- cargo deny check licenses --config deny.toml --exclude bizinikiwi-test-runtime-transaction-pool
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_IID
@@ -216,6 +228,7 @@ cargo-deny-sources:
needs: []
before_script: []
script:
- cargo install cargo-deny --locked -q
- cargo deny check sources --config deny.toml
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -227,6 +240,7 @@ cargo-audit:
needs: []
before_script: []
script:
- cargo install cargo-audit --locked -q
- |
cargo audit \
--ignore RUSTSEC-2026-0006 \
@@ -417,9 +431,7 @@ build-implementers-guide:
stage: docs
needs: []
before_script: []
image: rust:slim
script:
- cargo install mdbook --version 0.4.35 --locked --quiet
- mdbook build ./pezkuwi/roadmap/implementers-guide
artifacts:
paths: [pezkuwi/roadmap/implementers-guide/book/]