From 2ba0a2c5ff53b978f43686d4e6c8756ead19fbc2 Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 10 Aug 2025 00:27:19 -0700 Subject: [PATCH] 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 --- .forgejo/workflows/build-artifacts.yml | 3 +++ .forgejo/workflows/simple-build.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.forgejo/workflows/build-artifacts.yml b/.forgejo/workflows/build-artifacts.yml index c6f0c18..a412013 100644 --- a/.forgejo/workflows/build-artifacts.yml +++ b/.forgejo/workflows/build-artifacts.yml @@ -63,6 +63,9 @@ jobs: # Install Rust clippy component rustup component add clippy + + # Install Rust rustfmt component + rustup component add rustfmt - name: Checkout repository manually run: | diff --git a/.forgejo/workflows/simple-build.yml b/.forgejo/workflows/simple-build.yml index 0c938e1..53f1835 100644 --- a/.forgejo/workflows/simple-build.yml +++ b/.forgejo/workflows/simple-build.yml @@ -26,6 +26,9 @@ jobs: # Install Rust clippy component 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 # No need for rustup or toolchain management! echo "✅ Using pre-installed Rust from official image:"