Skip to content

feat: 使用配置文件方法则直接解析 #29

feat: 使用配置文件方法则直接解析

feat: 使用配置文件方法则直接解析 #29

Workflow file for this run

name: Check
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --workspace --all-targets -- -D warnings