ci: use installed toolchain to lint Rust

This commit is contained in:
link2xt
2025-05-28 16:15:04 +00:00
committed by l
parent 89df9536e9
commit c7063c00f7

View File

@@ -36,6 +36,8 @@ jobs:
persist-credentials: false
- name: Install rustfmt and clippy
run: rustup toolchain install $RUST_VERSION --profile minimal --component rustfmt --component clippy
- run: rustup override set $RUST_VERSION
shell: bash
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v2
- name: Run rustfmt