Retry choco install step up to 10 times

With a timeout of 3min
This commit is contained in:
Jonny 2022-11-23 07:35:31 +00:00 committed by GitHub
parent a9f33999dc
commit 8e3efab09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,12 @@ jobs:
run: brew install gcovr run: brew install gcovr
- name: Install OpenCppCoverage and add to PATH - name: Install OpenCppCoverage and add to PATH
uses: nick-fields/retry@v2
if: matrix.type.name == 'Debug' && runner.os == 'Windows' if: matrix.type.name == 'Debug' && runner.os == 'Windows'
run: | with:
max_attempts: 10
timeout_minutes: 3
command: |
choco install OpenCppCoverage -y choco install OpenCppCoverage -y
echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH