Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme committed Oct 20, 2024
1 parent 363167a commit 30e8806
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/actions/anchor/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,26 @@ runs:
rustup toolchain install ${rust_version#v}
rustup default ${rust_version#v}
rustup component add rustfmt clippy
rustc --version
shell: bash
- name: Setup node
run: |
source $HOME/.nvm/nvm.sh
nvm install ${{ inputs.node-version }}
nvm use ${{ inputs.node-version }}
nvm alias default ${{ inputs.node-version }}
node --version
shell: bash
- name: Install Solana CLI
run: |
wget -qO- "https://release.anza.xyz/${{ inputs.solana-version }}/solana-release-x86_64-unknown-linux-gnu.tar.bz2" | tar -xvj
echo "$PWD/solana-release/bin" >> $GITHUB_PATH
solana --version
shell: bash
- name: Install Anchor CLI
run: |
anchor_version=${{ inputs.anchor-version }}
npm install -g @coral-xyz/anchor-cli@${anchor_version#v}
anchor --version
shell: bash
- name: Configure Solana CLI
run: |
node --version
solana config set --url ${{ inputs.solana-cluster }}
if [ -z "${{ inputs.solana-key }}" ]; then
solana-keygen new --no-bip39-passphrase
Expand All @@ -68,3 +63,10 @@ runs:
fi
solana airdrop 1 || true
shell: bash
- name: Log Installed Tools
run: |
echo "rustc: $(rustc --version)"
echo "node: $(node --version)"
echo "solana: $(solana --version)"
echo "anchor: $(anchor --version)"
shell: bash

0 comments on commit 30e8806

Please sign in to comment.