Skip to content

Commit 98be298

Browse files
authored
[CI] Add automatic retry for 'choco install' in case of failure on Windows (#304)
1 parent bf62a48 commit 98be298

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,11 @@ jobs:
714714
with:
715715
mpi: msmpi
716716
- name: Download dependencies
717-
run: |
718-
choco install openssl --execution-timeout 6000
717+
uses: nick-fields/retry@v3
718+
with:
719+
timeout_minutes: 60
720+
max_attempts: 3
721+
command: choco install openssl --execution-timeout 3600
719722
- name: Setup ccache
720723
uses: Chocobo1/setup-ccache-action@v1
721724
with:
@@ -772,8 +775,11 @@ jobs:
772775
with:
773776
mpi: msmpi
774777
- name: Download dependencies
775-
run: |
776-
choco install openssl --execution-timeout 6000
778+
uses: nick-fields/retry@v3
779+
with:
780+
timeout_minutes: 60
781+
max_attempts: 3
782+
command: choco install openssl --execution-timeout 3600
777783
- name: Setup ccache
778784
uses: Chocobo1/setup-ccache-action@v1
779785
with:

0 commit comments

Comments
 (0)