Release Candidate 0.2.20 (#3) #40
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: Check Embassy-oriented noxtls build (thumbv6m-none-eabi) | |
| run: | | |
| rustup target add thumbv6m-none-eabi | |
| cargo check -p noxtls-crypto --no-default-features --features alloc --target thumbv6m-none-eabi | |
| cargo check -p noxtls --no-default-features --features alloc,adapter-embedded-io-async --target thumbv6m-none-eabi | |
| cargo check -p noxtls-platform --no-default-features --features alloc,rand-core --target thumbv6m-none-eabi | |
| cargo tree -p noxtls-crypto --target thumbv6m-none-eabi -e normal > /tmp/noxtls-crypto-thumbv6m.tree | |
| ! grep -q "spin v" /tmp/noxtls-crypto-thumbv6m.tree | |
| - name: Build workspace and application binaries | |
| run: | | |
| cargo build --workspace | |
| cargo build -p noxtls --examples | |
| cargo build -p noxtls-test --bins | |
| - name: Check Embassy example crates (thumbv6m-none-eabi) | |
| run: | | |
| rustup target add thumbv6m-none-eabi | |
| cd ports/rp2040 | |
| cargo check -p tls-client-rp --target thumbv6m-none-eabi | |
| cargo check -p tls-server-rp --target thumbv6m-none-eabi | |
| 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: Check release/version consistency | |
| working-directory: docs | |
| run: npm run release:check | |
| - name: Regenerate docs content | |
| working-directory: docs | |
| run: npm run docs:sync | |
| - name: Build Docusaurus site | |
| working-directory: docs | |
| run: npm run build |