Skip to content

Commit bc06587

Browse files
authored
Merge pull request #360 from Rust-for-Linux/alex-patch-1
ci: retry add-apt-repository to deal with network issues
2 parents bfe9ec6 + a8a369c commit bc06587

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ jobs:
137137
138138
# Setup: LLVM
139139
- run: curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
140-
- run: sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
140+
# Retry to be resilient to intermittent network issues
141+
- run: |
142+
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' ||
143+
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' ||
144+
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
141145
- run: sudo apt-get update -y
142146
- run: sudo apt-get install -y llvm-12 clang-12 lld-12
143147
- run: echo $(llvm-config-12 --bindir) >> $GITHUB_PATH

0 commit comments

Comments
 (0)