From b6e4ed195657d4672436cb84ebfaebc5753072df Mon Sep 17 00:00:00 2001 From: dailz Date: Tue, 14 Jul 2026 13:44:11 +0800 Subject: [PATCH] ci: install rustup via official script (not pre-installed in image) The catthehacker/ubuntu:act-latest image does not have rustup in PATH ('rustup: command not found', exit 127). Replace the direct rustup invocation with the official install script from sh.rustup.rs, which installs rustup + the stable toolchain in one step. Also adds ~/.cargo/bin to GITHUB_PATH so subsequent steps (cargo clippy, cargo build, cargo test, cargo audit) can find cargo/rustc. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f55edcf..766b64a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,9 @@ jobs: - uses: https://gitea.com/actions/checkout@v4 - name: Install Rust toolchain (stable) - run: rustup toolchain install stable --profile minimal --component clippy && rustup default stable + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --component clippy + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Install system dependencies run: |