f786f163bc
Integration (answers 'does it run automatically'): - redbear-ci.yml now runs test-versioning-machinery.sh (33 cases) and verify-external-source-versions.sh on every push/PR; trigger widened to 0.3.* so a release-branch increment keeps CI (and these checks) firing. - The validator already runs in build-preflight.sh Phase 1.0C (every build), and bump-graphics-recipes.sh (invoked by bump-release.sh --with-external) now calls the sync engine — so an external bump propagates + is validated. Engine hardening (both regression-tested): - reconcile_blake3: a vendored bump often left recipe blake3 stale (URL bumped, hash not); the engine now sets recipe blake3 to the authoritative source.tar hash (only when source.tar version matches the URL version; no-op under --check). - transient recipes (no vendored source/) now get their stale cached source.tar bumped to the declared version too, instead of being skipped.
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
name: redbear-ci
|
|
|
|
on:
|
|
push:
|
|
# Glob so a release-branch increment (0.3.1 -> 0.3.2 -> ...) keeps triggering
|
|
# CI — including the versioning-machinery checks below — without editing this
|
|
# file on every bump.
|
|
branches: ["0.3.*", master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
toolchain: nightly-2026-05-24
|
|
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
toolchain: nightly-2026-05-24
|
|
components: rustfmt, clippy
|
|
|
|
- name: Check sync-versions compliance
|
|
run: ./local/scripts/sync-versions.sh --check
|
|
|
|
- name: Install b3sum (versioning machinery + validator)
|
|
run: sudo apt-get update && sudo apt-get install -y b3sum
|
|
|
|
- name: Versioning machinery unit tests
|
|
run: ./local/scripts/test-versioning-machinery.sh
|
|
|
|
- name: External recipe source-version consistency
|
|
# Fails if any tar recipe's vendored source/ (or tracked source.tar)
|
|
# diverges from its declared version — the Qt/KDE class of bug. Mirrors
|
|
# build-preflight.sh Phase 1.0C so divergence is caught on every push/PR,
|
|
# not only at build time.
|
|
run: ./local/scripts/verify-external-source-versions.sh
|
|
|
|
- name: cargo fmt check (redbear-* crates)
|
|
run: |
|
|
set -e
|
|
for f in $(find local/recipes -path "*redbear-*/source/Cargo.toml" -not -path "*/target/*"); do
|
|
echo "--- cargo fmt --check: $f ---"
|
|
cargo fmt --manifest-path "$f" -- --check
|
|
done
|
|
|
|
- name: cargo check (redbear-* crates)
|
|
run: |
|
|
set -e
|
|
for f in $(find local/recipes -path "*redbear-*/source/Cargo.toml" -not -path "*/target/*"); do
|
|
echo "--- cargo check: $f ---"
|
|
cargo check --manifest-path "$f" --target x86_64-unknown-redox --locked
|
|
done
|
|
continue-on-error: true
|
|
|
|
- name: cargo check host (library-only crates)
|
|
run: |
|
|
set -e
|
|
for f in $(find local/recipes -path "*redbear-hid-core/source/Cargo.toml" -not -path "*/target/*"); do
|
|
echo "--- cargo check host: $f ---"
|
|
cargo check --manifest-path "$f"
|
|
done
|
|
continue-on-error: true
|
|
|
|
- name: cargo test host (pure-logic crates)
|
|
run: |
|
|
set -e
|
|
for f in $(find local/recipes -path "*redbear-*/source/Cargo.toml" -not -path "*/target/*"); do
|
|
has_test=$(grep -c '\[\[test\]\]' "$f" 2>/dev/null || true)
|
|
if [ "$has_test" -gt 0 ]; then
|
|
echo "--- cargo test: $f ---"
|
|
cargo test --manifest-path "$f" || echo "NOTE: some tests may require Redox target; continuing"
|
|
fi
|
|
done
|
|
continue-on-error: true
|