-
Notifications
You must be signed in to change notification settings - Fork 90
ci: Use release.anza.xyz instead of release.solana.com to install Solana CLI
#619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a60047e
Try using `release.anza.xyz` instead of `release.solana.com` to insta…
nvsriram 696aae4
Move inputs to be in scope of `anchor-test` job
nvsriram 3c316b8
Replace `metadaoproject/setup-anchor@v2` with adapted underlying yaml
nvsriram 760f15e
nit: Keep spacing consistent between steps
nvsriram 675dab9
Move `Setup Anchor` into its own action
nvsriram a760454
Rename `inputs` to `env`
nvsriram b430980
Call `.github/actions/setup-anchor` action instead
nvsriram 7fbc612
Update path to actions
nvsriram b837deb
Update action name and path
nvsriram 1acfe8b
Update path to action
nvsriram 6f738cd
Add trailing slash
nvsriram 11aed74
Try updating path
nvsriram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # adapted from https://github.com/metaDAOproject/setup-anchor | ||
| name: "Setup Anchor" | ||
| description: "Install Anchor, Solana CLI tools, and Node.js." | ||
| branding: | ||
| icon: anchor | ||
| color: blue | ||
| inputs: | ||
| node-version: | ||
| description: "Version of node.js to use" | ||
| required: true | ||
| solana-cli-version: | ||
| description: "Version of Solana CLI to use" | ||
| required: true | ||
| anchor-version: | ||
| description: "Version of Anchor to use" | ||
| required: true | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| - name: Cache Solana CLI tools | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cache/solana/ | ||
| ~/.local/share/solana/ | ||
| key: solana-cli-${{ runner.os }}-build-${{ inputs.solana-cli-version }} | ||
| - name: Install Solana CLI tools | ||
| run: | | ||
| sh -c "$(curl -sSfL https://release.anza.xyz/v${{ inputs.solana-cli-version }}/install)" | ||
| shell: bash | ||
| - name: Update PATH | ||
| run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | ||
| shell: bash | ||
| - name: Install Anchor | ||
| run: npm i -g @coral-xyz/anchor-cli@${{ inputs.anchor-version }} | ||
| shell: bash | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.