From 8e3efab09d62f6a01f775cbd0b73dc207e9887db Mon Sep 17 00:00:00 2001 From: Jonny Date: Wed, 23 Nov 2022 07:35:31 +0000 Subject: [PATCH] Retry choco install step up to 10 times With a timeout of 3min --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f417c1e6f..3d1d7e4d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,10 +78,14 @@ jobs: run: brew install gcovr - name: Install OpenCppCoverage and add to PATH + uses: nick-fields/retry@v2 if: matrix.type.name == 'Debug' && runner.os == 'Windows' - run: | - choco install OpenCppCoverage -y - echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH + with: + max_attempts: 10 + timeout_minutes: 3 + command: | + choco install OpenCppCoverage -y + echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH - name: Configure CMake shell: bash