Audit public API and SemVer surface (#103)
Some checks failed
API and SemVer surface / api-surface (push) Failing after 13m8s
Native code generation / deterministic (push) Failing after 2m8s
Concurrency and resource soak audit / soak (push) Failing after 6m39s
Imaging and meshing gate / native (push) Has been cancelled
Release platform and feature matrix / audit (push) Has been cancelled
Release platform and feature matrix / matrix (false, linux-stable-minimal, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, macos-stable-portable, x86_64-apple-darwin, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, windows-stable-portable, x86_64-pc-windows-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-msrv-portable, x86_64-unknown-linux-gnu, 1.96.0) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-default, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-features, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-release-surface, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Documentation / documentation (push) Has been cancelled
Native Rust workspace compile / compile (push) Has been cancelled
Dependency and supply-chain audit / audit (push) Has been cancelled
JPEG 2000 feature / linux (push) Successful in 2m46s
Skia feature / linux (push) Successful in 31m0s

This commit is contained in:
2026-08-12 01:35:26 +00:00
parent 5eb3f01122
commit d08b59c9a9
35 changed files with 5112 additions and 67 deletions

View File

@@ -0,0 +1,81 @@
name: API and SemVer surface
on:
push:
paths:
- ".gitea/workflows/api-surface.yml"
- "Cargo.lock"
- "Cargo.toml"
- "api/**"
- "ci/evidence/api-audit.json"
- "crates/**"
- "tests/api-compile/**"
- "tests/semver-port/**"
- "tools/check_api_coverage.py"
- "tools/generate_api_shims.py"
- "tools/generate_rust_mapping.py"
- "tools/ci-matrix/**"
pull_request:
paths:
- ".gitea/workflows/api-surface.yml"
- "Cargo.lock"
- "Cargo.toml"
- "api/**"
- "ci/evidence/api-audit.json"
- "crates/**"
- "tests/api-compile/**"
- "tests/semver-port/**"
- "tools/check_api_coverage.py"
- "tools/generate_api_shims.py"
- "tools/generate_rust_mapping.py"
- "tools/ci-matrix/**"
jobs:
api-surface:
runs-on: ubuntu-latest
env:
CARGO_BUILD_JOBS: "1"
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
steps:
- uses: actions/checkout@v4
- name: Install native prerequisites
run: sudo apt-get update && sudo apt-get install -y libopus-dev pkg-config
- name: Install Rust 1.97
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.97.0"
components: rustfmt, clippy
- name: Verify deterministic mapping and export coverage
run: |
python3 tools/generate_rust_mapping.py --check
python3 tools/generate_api_shims.py --check
python3 tools/check_api_coverage.py
- name: Verify reviewed API baseline
run: |
cargo run --locked -p metacrate-ci-matrix -- api-baseline-write
git diff --exit-code -- api/SEMVER-BASELINE.json api/SEMVER-AUDIT.md
cargo run --locked -p metacrate-ci-matrix -- api-audit --evidence /tmp/metacrate-api-audit.json
cmp /tmp/metacrate-api-audit.json ci/evidence/api-audit.json
- name: Compile downstream API consumers
run: |
cargo check --locked --manifest-path tests/api-compile/Cargo.toml
cargo run --locked --manifest-path tests/semver-port/Cargo.toml
- name: Check formatting and lints
run: |
cargo fmt --all -- --check
cargo fmt --manifest-path tests/semver-port/Cargo.toml -- --check
cargo clippy --locked -p metacrate-ci-matrix --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/semver-port/Cargo.toml --all-targets -- -D warnings
- name: Upload audit evidence
uses: actions/upload-artifact@v4
with:
name: api-semver-audit
path: ci/evidence/api-audit.json