From e910d44b67442b437611d3e5203b0a5044e3d1e1 Mon Sep 17 00:00:00 2001 From: Henry-E Date: Fri, 23 Dec 2022 10:53:05 +0000 Subject: [PATCH] update cli version and add retry cli download on error (#2335) --- .github/actions/setup-solana/action.yaml | 8 ++++++++ .github/workflows/no-cashing-tests.yaml | 2 +- .github/workflows/tests.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-solana/action.yaml b/.github/actions/setup-solana/action.yaml index 81187405..f5b4bc68 100644 --- a/.github/actions/setup-solana/action.yaml +++ b/.github/actions/setup-solana/action.yaml @@ -11,6 +11,14 @@ runs: ~/.cache/solana/ ~/.local/share/solana/ key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }} + - uses: nick-fields/retry@v2 + with: + retry_wait_seconds: 300 + timeout_minutes: 2 + max_attempts: 10 + retry_on: error + shell: bash + command: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)" - run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)" shell: bash - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH diff --git a/.github/workflows/no-cashing-tests.yaml b/.github/workflows/no-cashing-tests.yaml index 3e510153..d972a4e6 100644 --- a/.github/workflows/no-cashing-tests.yaml +++ b/.github/workflows/no-cashing-tests.yaml @@ -5,7 +5,7 @@ on: branches: - master env: - SOLANA_CLI_VERSION: 1.14.7 + SOLANA_CLI_VERSION: 1.14.11 NODE_VERSION: 17.0.1 jobs: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 62a7acf7..e21bc63b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ on: branches: - master env: - SOLANA_CLI_VERSION: 1.14.7 + SOLANA_CLI_VERSION: 1.14.11 NODE_VERSION: 17.0.1 CARGO_PROFILE: debug