Install Rust rustfmt component in workflows
- Add 'rustup component add rustfmt' to both workflows - Resolves 'cargo-fmt is not installed' error - Now workflows can run formatting checks after successful compilation - Combined with clippy, this completes the Rust toolchain setup - Workflow should now complete successfully with all quality checks
This commit is contained in:
parent
ad7f427551
commit
2ba0a2c5ff
2 changed files with 6 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ jobs:
|
||||||
# Install Rust clippy component
|
# Install Rust clippy component
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
|
|
||||||
|
# Install Rust rustfmt component
|
||||||
|
rustup component add rustfmt
|
||||||
|
|
||||||
- name: Checkout repository manually
|
- name: Checkout repository manually
|
||||||
run: |
|
run: |
|
||||||
# Clone the repository manually instead of using actions/checkout
|
# Clone the repository manually instead of using actions/checkout
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ jobs:
|
||||||
# Install Rust clippy component
|
# Install Rust clippy component
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
|
|
||||||
|
# Install Rust rustfmt component
|
||||||
|
rustup component add rustfmt
|
||||||
|
|
||||||
# Rust 1.89.0 is already installed in rust:1.89-slim-trixie
|
# Rust 1.89.0 is already installed in rust:1.89-slim-trixie
|
||||||
# No need for rustup or toolchain management!
|
# No need for rustup or toolchain management!
|
||||||
echo "✅ Using pre-installed Rust from official image:"
|
echo "✅ Using pre-installed Rust from official image:"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue