-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
34 lines (32 loc) · 1.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Solana"
description: "Install Solana and Anchor"
inputs:
solana-version:
description: "Solana version"
required: true
anchor-version:
description: "Anchor version"
required: true
runs:
using: composite
steps:
- uses: actions/setup-node@v2
- name: Install Solana
shell: sh
run: |
echo Installing Solana v${{ inputs.solana-version }}...
sh -c "$(curl -sSfL "https://release.solana.com/v${{ inputs.solana-version }}/install")"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
echo Configuring bpf toolchain...
(cd "$HOME/.local/share/solana/install/active_release/bin/sdk/bpf/scripts"; ./install.sh)
- name: Install Anchor
shell: sh
run: |
npm install --global "@project-serum/anchor-cli@${{ inputs.anchor-version }}"
echo "$(npm root --global)/@project-serum/anchor-cli" >> "$GITHUB_PATH"
- name: Print version
shell: sh
run: |
solana -V
anchor -V