From 18b7a8f5de51c64a59823110abed8cc6c6c1bdde Mon Sep 17 00:00:00 2001 From: clawbot Date: Mon, 9 Mar 2026 20:50:35 -0700 Subject: [PATCH] ci: replace setup-rust-toolchain action with direct rustup install --- .gitea/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6169c3c..7419b1d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,13 +15,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable - - - name: Install rustfmt and clippy - run: rustup component add rustfmt clippy + - name: Setup Rust with rustfmt and clippy + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + $HOME/.cargo/bin/rustup component add rustfmt clippy - name: Build run: cargo build --release @@ -44,9 +42,9 @@ jobs: - uses: actions/checkout@v4 - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default + echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Build release binary run: cargo build --release