Add complete downstream API gate
Some checks failed
Rust API gates / api-gates (push) Has been cancelled

This commit is contained in:
2026-08-08 13:11:55 +02:00
parent 643762fd1d
commit c8a953996e
16 changed files with 183714 additions and 295 deletions

31
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,31 @@
name: Rust API gates
on:
push:
pull_request:
jobs:
api-gates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.85.0
with:
components: clippy,rustfmt
- name: Generated mapping and API coverage
run: |
python3 tools/generate_rust_mapping.py --check
python3 tools/generate_api_shims.py --check
python3 tools/check_api_coverage.py
- name: Formatting
run: cargo fmt --all -- --check
- name: Workspace check
run: cargo check --workspace --all-targets
- name: Downstream API fixture
run: cargo check --locked --manifest-path tests/api-compile/Cargo.toml
- name: Test compilation
run: cargo test --workspace --no-run
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Documentation
run: cargo doc --workspace --no-deps