From 08926e76e40a1d6d7af6ca7de5585b0cffe76698 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 11 Jun 2026 14:56:33 -0400 Subject: [PATCH] fix: use pre-installed Rust to avoid static.rust-lang.org connection failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Linux runner cannot reach static.rust-lang.org, so dtolnay/rust-toolchain times out every build. The runner host has Rust installed and bind-mounts ~/.cargo into the container — use that directly and skip the download. Also bump cinny submodule to 2178295e. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/release.yml | 11 ++++++++++- cinny | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index a36d7d4..e43e2b5 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -137,7 +137,16 @@ jobs: xdg-utils \ squashfs-tools - - uses: dtolnay/rust-toolchain@stable + - name: Set up Rust toolchain + run: | + source "$HOME/.cargo/env" 2>/dev/null || true + if command -v cargo >/dev/null 2>&1; then + echo "Using existing Rust: $(cargo --version)" + else + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal + source "$HOME/.cargo/env" + fi + echo "$HOME/.cargo/bin" >> $GITHUB_PATH - uses: Swatinem/rust-cache@v2 with: diff --git a/cinny b/cinny index 055dcec..2178295 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit 055dcec65b59606180a380257725a35aef76a6ae +Subproject commit 2178295eaa754c6a2bab0ea2f8962fba4a3b3caf