Skip to content

Commit

Permalink
ci: retry add-apt-repository to deal with network issues
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Gaynor <[email protected]>
  • Loading branch information
alex committed Jun 5, 2021
1 parent bfe9ec6 commit a8a369c
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 a8a369c

Please sign in to comment.