Skip to content

feat: add motherboard and product support #26

feat: add motherboard and product support

feat: add motherboard and product support #26

name: Rust lint & format check
on:
workflow_dispatch:
pull_request:
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings # Turn warnings into errors
RUST_CI: true
jobs:
check-linux:
name: "Ubuntu: cargo clippy && cargo fmt"
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features --all-targets
check-windows:
name: "Windows: cargo clippy"
runs-on: windows-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --all-features --all-targets
check-macos:
name: "MacOS: cargo clippy"
runs-on: macos-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --all-features --all-targets