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