GHA: Add retry for apt commands

This commit is contained in:
Magne Sjaastad 2023-02-06 12:43:38 +01:00
parent 7a2aebe8b9
commit 60abadb86e
4 changed files with 7 additions and 7 deletions

View File

@ -15,8 +15,8 @@ jobs:
- name: Install Linux dependencies
if: "contains( matrix.os, 'ubuntu')"
run: |
sudo apt-get update
sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev
- name: Install Qt
uses: jurplel/install-qt-action@v3

View File

@ -135,8 +135,8 @@ jobs:
- name: Install Linux dependencies
if: "contains( matrix.config.os, 'ubuntu')"
run: |
sudo apt-get update
sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
- name: Install Qt

View File

@ -8,7 +8,7 @@ jobs:
steps:
- name: Install clang-format 10.0
run: |
sudo apt install clang-format
sudo apt install --option="APT::Acquire::Retries=3" clang-format
clang-format --version
- uses: actions/checkout@v3
- name: Check format - ApplicationLibCode

View File

@ -31,8 +31,8 @@ jobs:
- name: Install Linux dependencies
if: "contains( matrix.config.os, 'ubuntu')"
run: |
sudo apt-get update
sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
sudo apt-get update --option="APT::Acquire::Retries=3"
sudo apt-get install --option="APT::Acquire::Retries=3" libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev libhdf5-dev
- name: Install Qt
uses: jurplel/install-qt-action@v3