fix: use pre-installed Rust to avoid static.rust-lang.org connection failures
Build Lotus Chat Desktop / prepare (push) Successful in 3s
Build Lotus Chat Desktop / build-linux (push) Failing after 12m13s
Build Lotus Chat Desktop / build-windows (push) Successful in 23m20s
Build Lotus Chat Desktop / update-manifest (push) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 14:56:33 -04:00
parent 2de368847c
commit 08926e76e4
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -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: