Skip to content

Commit 19c2107

Browse files
itsmeakhilclaude
andcommitted
ci(rust): apt timeouts + retries so a stalled mirror fails fast
First run hung 17 min in apt-get update (archive.ubuntu.com InRelease stall). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 9cf05b9 commit 19c2107

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ jobs:
4040
persist-credentials: false
4141

4242
- name: Tauri Linux prerequisites
43+
# Short per-request timeouts + retries: the runner's apt mirror occasionally
44+
# stalls for the whole job; fail fast and retry instead of hanging for 45 min.
45+
timeout-minutes: 10
46+
env:
47+
DEBIAN_FRONTEND: noninteractive
48+
APT_OPTS: -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::Retries=3
4349
run: |
44-
sudo apt-get update
45-
sudo apt-get install -y --no-install-recommends \
50+
for i in 1 2 3; do sudo apt-get update $APT_OPTS && break || sleep 10; done
51+
sudo apt-get install -y --no-install-recommends $APT_OPTS \
4652
libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev \
4753
libssl-dev libayatana-appindicator3-dev librsvg2-dev
4854

0 commit comments

Comments
 (0)