Skip to content

Commit 33366ad

Browse files
authored
1 parent 6ab7154 commit 33366ad

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ jobs:
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

0 commit comments

Comments
 (0)