Skip to content

Commit 7aec2ae

Browse files
committed
ci: retry apt operations in rust release
1 parent 14a92dd commit 7aec2ae

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/rust-release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ jobs:
4343
shell: bash
4444
run: |
4545
set -euo pipefail
46-
sudo apt-get update -y
47-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends pkg-config libcap-dev libubsan1
46+
apt_retry_args=(
47+
-o Acquire::Retries=5
48+
-o Acquire::http::Timeout=30
49+
)
50+
sudo apt-get "${apt_retry_args[@]}" update -y
51+
sudo DEBIAN_FRONTEND=noninteractive apt-get "${apt_retry_args[@]}" install -y --no-install-recommends pkg-config libcap-dev libubsan1
4852
4953
- uses: dtolnay/rust-toolchain@1.93.0
5054
with:

0 commit comments

Comments
 (0)