Skip to content

Commit

Permalink
Merge pull request #360 from Rust-for-Linux/alex-patch-1
Browse files Browse the repository at this point in the history
ci: retry add-apt-repository to deal with network issues
  • Loading branch information
ojeda authored Jun 5, 2021
2 parents bfe9ec6 + a8a369c commit bc06587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ jobs:
# Setup: LLVM
- run: curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- run: sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
# Retry to be resilient to intermittent network issues
- run: |
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' ||
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' ||
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
- run: sudo apt-get update -y
- run: sudo apt-get install -y llvm-12 clang-12 lld-12
- run: echo $(llvm-config-12 --bindir) >> $GITHUB_PATH
Expand Down

0 comments on commit bc06587

Please sign in to comment.