action.yaml 695 B

123456789101112131415161718192021
  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. - run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
  15. shell: bash
  16. - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  17. shell: bash
  18. - run: solana-keygen new --no-bip39-passphrase
  19. shell: bash
  20. - run: solana config set --url localhost
  21. shell: bash