File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v3
12- # Ensure rustfmt is installed and setup problem matcher
1312 - uses : actions-rust-lang/setup-rust-toolchain@v1
1413 with :
14+ toolchain : nightly
1515 components : rustfmt
16- - run : echo "cargohome=${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_OUTPUT
17- shell : bash
18- id : cargo-home
19- - uses : actions/cache@v3
20- id : cache
21- with :
22- path : |
23- ${{ steps.cargo-home.outputs.cargohome }}/.crates.toml
24- ${{ steps.cargo-home.outputs.cargohome }}/.crates2.json
25- - name : Rustfmt Check
26- uses : actions-rust-lang/rustfmt@v1
16+ - run : cargo +nightly fmt --all -- --check
17+ - uses : actions-rust-lang/setup-rust-toolchain@v1
2718 with :
28- manifest-path : ./proj/Cargo.toml
19+ toolchain : stable
20+ components : clippy
21+ - uses : Swatinem/rust-cache@v2
22+ - run : cargo clippy --all-targets --all-features --locked -- -D
You can’t perform that action at this time.
0 commit comments