Skip to content

Commit 5c73ba8

Browse files
authored
Merge pull request #686 from libtom/retry-dependencies-install
Try to work around build failures
2 parents d032686 + e609a50 commit 5c73ba8

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,18 @@ jobs:
5959
steps:
6060
- uses: actions/checkout@v4
6161
- name: install dependencies
62-
run: |
63-
sudo apt-get update -qq
64-
sudo apt-get install -y libgmp-dev valgrind libtool-bin clang-tools lcov ruby clang
65-
sudo apt-get remove -y libtommath1
66-
sudo gem install coveralls-lcov
67-
curl -s https://packagecloud.io/install/repositories/libtom/packages/script.deb.sh | sudo bash
68-
sudo apt-get install libtfm-git-dev libtommath-git-dev
62+
uses: nick-fields/retry@v3
63+
with:
64+
timeout_minutes: 5
65+
max_attempts: 3
66+
retry_on: error
67+
command: |
68+
sudo apt-get update -qq
69+
sudo apt-get install -y libgmp-dev valgrind libtool-bin clang-tools lcov ruby clang
70+
sudo apt-get remove -y libtommath1
71+
sudo gem install coveralls-lcov
72+
curl -s https://packagecloud.io/install/repositories/libtom/packages/script.deb.sh | sudo bash
73+
sudo apt-get install libtfm-git-dev libtommath-git-dev
6974
- name: run tests
7075
env:
7176
CC: "${{ matrix.cc }}"
@@ -108,11 +113,16 @@ jobs:
108113
steps:
109114
- uses: actions/checkout@v4
110115
- name: install dependencies
111-
run: |
112-
sudo apt-get update -qq
113-
sudo apt-get remove -y libtommath1
114-
curl -s https://packagecloud.io/install/repositories/libtom/packages/script.deb.sh | sudo bash
115-
sudo apt-get install libtommath-git-dev
116+
uses: nick-fields/retry@v3
117+
with:
118+
timeout_minutes: 5
119+
max_attempts: 3
120+
retry_on: error
121+
command: |
122+
sudo apt-get update -qq
123+
sudo apt-get remove -y libtommath1
124+
curl -s https://packagecloud.io/install/repositories/libtom/packages/script.deb.sh | sudo bash
125+
sudo apt-get install libtommath-git-dev
116126
- name: run tests
117127
env:
118128
CC: "${{ matrix.cc }}"

0 commit comments

Comments
 (0)