diff --git a/.github/workflows/rust_build.yml b/.github/workflows/rust_build.yml index eb39e57df..404c21041 100644 --- a/.github/workflows/rust_build.yml +++ b/.github/workflows/rust_build.yml @@ -17,6 +17,26 @@ jobs: - name: Code format check working-directory: ./rust run: cargo fmt --check + clippy: + runs-on: ubuntu-latest + name: clippy check + permissions: write-all + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + - name: Clippy check + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features --manifest-path rust/Cargo.toml -- -D warnings doc: runs-on: ubuntu-latest name: doc check