Clippy fixes; updated Cargo.lock #55
This file contains 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: Lint rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- dev | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
lint: | |
runs-on: [self-hosted, linux] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install rustup | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt, clippy | |
- name: Cache rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: lint-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install protoc | |
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler | |
- name: Check format | |
run: | | |
cargo fmt --all -- --check | |
cargo clippy --all-targets --all-features |