workflows: retry on apt failure

Co-authored-by: xiphon <xiphon@protonmail.com>
This commit is contained in:
selsta 2020-03-31 23:42:18 +02:00
parent 6c7d928f19
commit 9c95437167
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 15 additions and 0 deletions

View File

@ -36,6 +36,11 @@ jobs:
submodules: recursive submodules: recursive
- name: remove bundled boost - name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies
@ -51,6 +56,11 @@ jobs:
submodules: recursive submodules: recursive
- name: remove bundled boost - name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies
@ -67,6 +77,11 @@ jobs:
submodules: recursive submodules: recursive
- name: remove bundled boost - name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies