update cli version and add retry cli download on error (#2335)

This commit is contained in:
Henry-E 2022-12-23 10:53:05 +00:00 committed by GitHub
parent 38bbb21c33
commit e910d44b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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:

View File

@ -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