fix: add rustfmt and clippy components to all Rust toolchain installations in CI to resolve 'cargo-fmt is not installed' error for Rust 1.76 toolchain

This commit is contained in:
floor-licker
2025-12-05 19:14:19 -05:00
parent 86305f384c
commit 3bf76360f9
+7 -12
View File
@@ -27,6 +27,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
components: rustfmt, clippy
- name: Cache dependencies
uses: actions/cache@v4
@@ -76,8 +77,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Cache dependencies
uses: actions/cache@v4
@@ -105,8 +105,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Install cargo-audit
run: cargo install cargo-audit
@@ -125,8 +124,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Build documentation
run: cargo doc --no-deps --all-features
@@ -145,8 +143,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Build examples
run: cargo build --examples --all-features
@@ -166,8 +163,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Install system dependencies for cargo-spellcheck
run: |
@@ -214,8 +210,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: Build for release
run: cargo build --release --all-features