diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e3657e4..3bc7dcd 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -10,12 +10,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - - name: Install build tools - run: sudo apt-get update && sudo apt-get install -y build-essential + - name: Install build tools and Rust + run: | + apt-get update && apt-get install -y build-essential curl ca-certificates + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Format check run: cargo fmt --check