8000 ci: retry add-apt-repository to deal with network issues · Rust-for-Linux/linux@c19305d · GitHub
[go: up one dir, main page]

Skip to content

Commit c19305d

Browse files
authored
ci: retry add-apt-repository to deal with network issues
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
1 parent bfe9ec6 commit c19305d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ 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+
- run: |
141+
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' ||
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'
141144
- run: sudo apt-get update -y
142145
- run: sudo apt-get install -y llvm-12 clang-12 lld-12
143146
- run: echo $(llvm-config-12 --bindir) >> $GITHUB_PATH

0 commit comments

Comments
 (0)
0