action.yaml 937 B

12345678910111213141516171819202122232425262728
  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 }}-${{ env.SOLANG_VERSION }}
  14. - uses: nick-fields/retry@v2
  15. if: steps.cache-solana.outputs.cache-hit != 'true'
  16. with:
  17. retry_wait_seconds: 300
  18. timeout_minutes: 2
  19. max_attempts: 10
  20. retry_on: error
  21. shell: bash
  22. command: sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_CLI_VERSION }}/install)"
  23. - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  24. shell: bash
  25. - run: solana-keygen new --no-bip39-passphrase
  26. shell: bash
  27. - run: solana config set --url localhost
  28. shell: bash