From 4e65ef384329c3c428fc32143abe72a7829e53e6 Mon Sep 17 00:00:00 2001 From: Austin Schaefer Date: Wed, 29 Jul 2026 12:25:09 +0200 Subject: [PATCH] Fix CI job: run on default node image instead of rust:latest The rust:latest container has no Node.js, but actions/checkout@v4 and actions/cache@v4 are JS actions that require it to execute at all, so the job failed before any cargo/fmt steps ran. Use the default docker runner image and install the Rust toolchain via rustup instead. Co-Authored-By: Claude Sonnet 5 --- .forgejo/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5618cf9..80f318d 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -7,7 +7,6 @@ on: jobs: ci: runs-on: docker - container: rust:latest steps: - uses: actions/checkout@v4 @@ -22,8 +21,10 @@ jobs: restore-keys: | ${{ runner.os }}-cargo- - - name: Install toolchain components - run: rustup component add clippy rustfmt + - name: Install Rust toolchain + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --component clippy --component rustfmt + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Install cargo-make and cargo-audit run: |