Skip to content

Commit 19ca5f6

Browse files
committed
fix: sprinkled retries all over the CI downloads
1 parent c0df884 commit 19ca5f6

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
- name: Install tools (Linux)
4141
if: runner.os == 'Linux'
4242
run: |
43-
sudo apt-get update
44-
sudo apt-get install -y xxd gpac vim-common nlohmann-json3-dev unzip doxygen
45-
sudo apt-get install -y atomicparsley || true
43+
sudo apt-get update -o Acquire::Retries=5
44+
sudo apt-get install -o Acquire::Retries=5 -y xxd gpac vim-common nlohmann-json3-dev unzip doxygen
45+
sudo apt-get install -o Acquire::Retries=5 -y atomicparsley || true
4646
# Prefer distro bento4; fall back to upstream binaries if missing.
4747
if ! sudo apt-get install -y bento4; then
4848
B4_VER="1-6-0-640"
4949
B4_URL="https://www.bok.net/Bento4/binaries/Bento4-SDK-${B4_VER}.x86_64-unknown-linux.zip"
5050
echo "Fetching Bento4 from ${B4_URL}"
51-
curl -L -o /tmp/bento4.zip "${B4_URL}"
51+
curl -L --retry 5 --retry-delay 5 --fail --retry-all-errors -o /tmp/bento4.zip "${B4_URL}"
5252
sudo unzip -q /tmp/bento4.zip -d /opt/bento4
5353
sudo ln -sf /opt/bento4/Bento4-SDK-${B4_VER}.x86_64-unknown-linux/bin/mp4info /usr/local/bin/mp4info
5454
sudo ln -sf /opt/bento4/Bento4-SDK-${B4_VER}.x86_64-unknown-linux/bin/mp4dump /usr/local/bin/mp4dump
@@ -57,6 +57,7 @@ jobs:
5757
- name: Install tools (macOS)
5858
if: runner.os == 'macOS'
5959
run: |
60+
export HOMEBREW_CURL_RETRIES=5
6061
brew update
6162
# Prefer Bento4 mp4info/mp4dump; avoid mp4v2 to prevent binary conflicts.
6263
brew install gpac atomicparsley nlohmann-json bento4 doxygen || true
@@ -78,14 +79,17 @@ jobs:
7879
shell: bash
7980
run: |
8081
# Python is preinstalled on GitHub runners; keep a known version via setup-python instead of Chocolatey.
82+
export chocolateyDownloadRetries=5
83+
export chocolateyDownloadRetrySeconds=5
8184
choco install -y gpac
8285
choco install -y vim || true
8386
choco install -y nlohmann-json || true
8487
choco install -y 7zip || true
85-
choco install -y doxygen || true
88+
# Prefer doxygen.install (available on chocolatey); fall back to doxygen portable if needed.
89+
choco install -y doxygen.install || choco install -y doxygen || true
8690
# Bento4: download prebuilt SDK and expose mp4info/mp4dump
8791
B4_VER="1-6-0-640"
88-
curl -L -o /tmp/bento4.zip https://www.bok.net/Bento4/binaries/Bento4-SDK-${B4_VER}.x86_64-microsoft-win32.zip
92+
curl -L --retry 5 --retry-delay 5 --fail --retry-all-errors -o /tmp/bento4.zip https://www.bok.net/Bento4/binaries/Bento4-SDK-${B4_VER}.x86_64-microsoft-win32.zip
8993
mkdir -p /c/bento4
9094
unzip -q /tmp/bento4.zip -d /c/bento4
9195
echo "/c/bento4/Bento4-SDK-${B4_VER}.x86_64-microsoft-win32/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)