fix: Cleanup of crates and items #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all --check | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Test | |
| run: cargo test --workspace | |
| - name: Check no_std + alloc (library crates) | |
| run: | | |
| cargo check -p noxtls-core --no-default-features --features alloc | |
| cargo check -p noxtls-crypto --no-default-features --features alloc | |
| cargo check -p noxtls-pem --no-default-features --features alloc | |
| cargo check -p noxtls-x509 --no-default-features --features alloc | |
| cargo check -p noxtls-io --no-default-features --features alloc | |
| cargo check -p noxtls --no-default-features --features alloc | |
| - name: Check TLS transport adapters | |
| run: | | |
| cargo check -p noxtls --features adapter-embedded-io | |
| cargo check -p noxtls --features adapter-embedded-io-async | |
| cargo check -p noxtls --features adapter-tokio | |
| - name: Build workspace and application binaries | |
| run: | | |
| cargo build --workspace | |
| cargo build -p noxtls --examples | |
| cargo build -p noxtls-test --bins | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: docs/package-lock.json | |
| - name: Install docs dependencies | |
| working-directory: docs | |
| run: npm ci | |
| - name: Regenerate docs content | |
| working-directory: docs | |
| run: npm run docs:sync | |
| - name: Build Docusaurus site | |
| working-directory: docs | |
| run: npm run build |