From 74cbccc5a891fc00fc5bbd81f717b3b9f776ad53 Mon Sep 17 00:00:00 2001 From: siujamo Date: Thu, 18 Jun 2026 17:41:57 +0800 Subject: [PATCH] Fix Rust installation in CI workflow Replace `rustup update` (which assumes Rust is pre-installed) with the official rustup install script, then add ~/.cargo/bin to GITHUB_PATH. --- .gitea/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8eb10a8..63d2673 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,7 +28,9 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust - run: rustup update stable && rustup default stable + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Build (Linux) if: matrix.target == 'x86_64-unknown-linux-gnu'