mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 20:00:53 +00:00
572a2b89a6
* Add lint CI * Clippy allow complex types, warn on some others * bevy_gltf_blueprints use workspace lints * Update toolchain for workspace wide lints * Use workspace lints on the other crates as well
31 lines
850 B
YAML
31 lines
850 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ubuntu-latest-cargo-lint-${{ hashFiles('**/Cargo.toml') }}
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: 1.75.0
|
|
components: rustfmt, clippy
|
|
- name: Install alsa and udev
|
|
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
|
|
- name: Run clippy
|
|
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings
|
|
- name: Check format
|
|
run: cargo fmt --all -- --check
|