Update Rust SDK to version 0.1.4, enhance README.md with new route sm… #7
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: Publish Rust SDK | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "packages/sdk-rust/**" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: Production | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspace: packages/sdk-rust | |
| - name: Check formatting | |
| run: cd packages/sdk-rust && cargo fmt --all -- --check | |
| - name: Run clippy | |
| run: cd packages/sdk-rust && cargo clippy --all-targets -- -D warnings | |
| - name: Run tests | |
| run: cd packages/sdk-rust && cargo test | |
| - name: Publish to crates.io | |
| run: cd packages/sdk-rust && cargo publish | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |