android13/external/rust/crates/gdbstub/.github/workflows/lints.yml

34 lines
858 B
YAML

on: [push, pull_request]
name: Lints
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --examples --features=std -- -D warnings
# don't forget the no_std example!
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path example_no_std/Cargo.toml
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path example_no_std/Cargo.toml