update dep #252
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: Rust Lint And Test | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Deps | |
run: | | |
sudo apt-get update | |
sudo apt install -y libudev-dev | |
- name: Setup Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Toolchain in nightly mode | |
run: | | |
rustup component add rustfmt --toolchain nightly | |
rustup component add clippy --toolchain nightly | |
- name: Check | |
run: cargo check --all --tests | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Lint | |
run: cargo clippy --all-targets --all-features -- -D warnings |