From 581e4cf03751a3765d3d40b05e65906194460eb7 Mon Sep 17 00:00:00 2001 From: Gabriel Lopez Date: Sun, 27 Sep 2026 21:16:21 +0200 Subject: [PATCH] ci: install rustup when the runner image lacks it --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33512be..5d52c31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + # Les images du runner Gitea n'embarquent pas rustup. + - run: | + command -v rustup || { + curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + } - run: rustup toolchain install - uses: Swatinem/rust-cache@v2 - run: cargo fmt --all --check