Skip to content

Commit 7461183

Browse files
Have apt-get update retry a few times to avoid CI failures due to its unreliability.
1 parent 2c763fe commit 7461183

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
CXX: g++-15
1919
steps:
2020
- run: |
21-
apt-get update
21+
apt-get update --quiet=2 || apt-get update --quiet=2 || apt-get update --quiet=2
2222
apt-get install -y sudo
2323
sudo apt-get install -y git # Updating and installing sudo and git is only neccesary in a container.
2424
# Installing sudo is just so that the later commands using sudo can be the same whether in a container or not.
@@ -55,7 +55,7 @@ jobs:
5555
CXX: clang++-20
5656
steps:
5757
- run: |
58-
apt-get update
58+
apt-get update --quiet=2 || apt-get update --quiet=2 || apt-get update --quiet=2
5959
apt-get install -y sudo
6060
sudo apt-get install -y git # Updating and installing sudo and git is only neccesary in a container.
6161
# Installing sudo is just so that the later commands using sudo can be the same whether in a container or not.
@@ -104,7 +104,7 @@ jobs:
104104
ASAN_OPTIONS: "check_initialization_order=1"
105105
steps:
106106
- run: |
107-
apt-get update
107+
apt-get update --quiet=2 || apt-get update --quiet=2 || apt-get update --quiet=2
108108
apt-get install -y sudo
109109
sudo apt-get install -y git # Updating and installing sudo and git is only neccesary in a container.
110110
# Installing sudo is just so that the later commands using sudo can be the same whether in a container or not.

0 commit comments

Comments
 (0)