Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,18 @@ jobs:
- name: Setup Cache
uses: mozilla-actions/sccache-action@v0.0.9

- name: Install Toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Rust Format
uses: yonasBSD/toolkit@main
with:
components: rustfmt

- name: Install Tree Format (treefmt)
run: |
curl -s https://api.github.com/repos/numtide/treefmt/tags | jq -r '.[0].name' > .ver
curl -sSLo treefmt.tgz https://github.com/numtide/treefmt/releases/download/$(cat .ver)/treefmt_$(cat .ver | cut -d'v' -f2)_linux_amd64.tar.gz
tar -xvf treefmt.tgz

- name: Rust Format (rustfmt)
run: |
cargo fmt --version
cargo fmt --all --check
run: |
cargo fmt --version
cargo fmt --all --check

- name: Tree Format (treefmt)
run: ./treefmt
- name: Tree Format
uses: yonasBSD/toolkit@main
with:
run: |
treefmt

clippy:
name: Clippy
Expand Down
Loading