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,10 +78,14 @@ 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:
choco install OpenCppCoverage -y max_attempts: 10
echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH timeout_minutes: 3
command: |
choco install OpenCppCoverage -y
echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH
- name: Configure CMake - name: Configure CMake
shell: bash shell: bash