action.yaml 973 B

1234567891011121314151617181920212223242526272829
  1. name: "Setup Solana"
  2. description: "Setup Solana"
  3. runs:
  4. using: "composite"
  5. steps:
  6. - uses: actions/cache@v3
  7. name: Cache Solana Tool Suite
  8. id: cache-solana
  9. with:
  10. path: |
  11. ~/.cache/solana/
  12. ~/.local/share/solana/
  13. key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }}
  14. - uses: nick-fields/retry@v2
  15. with:
  16. retry_wait_seconds: 300
  17. timeout_minutes: 2
  18. max_attempts: 10
  19. retry_on: error
  20. shell: bash
  21. command: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
  22. - run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
  23. shell: bash
  24. - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  25. shell: bash
  26. - run: solana-keygen new --no-bip39-passphrase
  27. shell: bash
  28. - run: solana config set --url localhost
  29. shell: bash