Merge branch 'main' of github.com:rust-mcp-stack/rust-mcp-schema #122
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 | |
| workflow_call: | |
| # on: | |
| # push: | |
| # branches: | |
| # - main | |
| # pull_request: | |
| # branches: | |
| # - "**" | |
| # | |
| jobs: | |
| rust_check: | |
| name: Rust check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Cache Rust | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-rust-${{ steps.toolchain.outputs.cachekey }} | |
| restore-keys: ${{ runner.os }}-rust- | |
| - name: Clear rustup cache (avoid conflict errors) | |
| run: | | |
| rm -rf ~/.rustup/toolchains | |
| rm -rf ~/.rustup/downloads | |
| - name: Install Rust Toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - uses: taiki-e/install-action@nextest | |
| - name: Run Clippy | |
| run: | | |
| scripts/run_clippy.sh | |
| - name: Run Rustfmt | |
| run: | | |
| cargo fmt --all -- --check | |
| - name: Run cargo doc | |
| run: cargo doc --no-deps | |
| - name: Spell Check | |
| env: | |
| RUSTDOCFLAGS: "-Dwarnings" | |
| uses: crate-ci/typos@master | |
| - name: Audit | |
| uses: actions-rust-lang/audit@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Tests | |
| run: | | |
| scripts/run_test.sh |