Fucking around with kcl #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Install latest rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Run cargo fmt | |
run: | | |
cargo fmt -- --check | |
shell: bash |