name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.95.0
- run: cargo check
- run: cargo clippy -- -D warnings
- run: cargo test -- --test-threads=1
- name: Guard pure-Rust dependency graph
run: |
for c in ring openssl-sys aws-lc-sys; do
if cargo tree -i "$c" >/dev/null 2>&1; then
echo "::error::Crate '$c' pulls in C code and breaks fully-static musl Linux builds (issue #3). Use a pure-Rust alternative or disable the offending feature."
exit 1
fi
done
echo "Dependency graph is pure Rust — static musl Linux builds stay portable."