mirror of
https://github.com/linux-msm/sk8brd.git
synced 2026-02-25 13:13:15 -08:00
https://github.com/Traverse-Research/rust-template/blob/main/.github/workflows/ci.yml Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
26 lines
496 B
YAML
26 lines
496 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Rust code
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: cargo build --verbose
|
|
|
|
rust:
|
|
name: Lint Rust code
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Cargo fmt
|
|
run: cargo fmt --all -- --check
|
|
- name: Cargo clippy
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- name: Cargo test
|
|
run: cargo test --workspace
|