Skip to content

megarefactor

megarefactor #193

Workflow file for this run

on:
push:
branches:
- main
paths:
- "**.rs"
- "engine"
- "rust-toolchain"
- "rust-toolchain.toml"
- .github/workflows/cargo-fmt.yml
pull_request:
paths:
- "**.rs"
- "rust-toolchain"
- "rust-toolchain.toml"
- .github/workflows/cargo-fmt.yml
- "engine"
permissions:
packages: read
contents: read
name: cargo fmt
jobs:
cargofmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
rustflags: "" # use our .cargo/config.toml
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libudev-dev
shell: bash
- name: Run cargo fmt
run: |
cargo fmt -- --check
shell: bash