Skip to content

Commit c900c38

Browse files
committed
ci: inline Solana CLI install, pin to v2.1.14
1 parent 5b7469d commit c900c38

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,26 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v4
4646
- uses: dtolnay/rust-toolchain@stable
47-
- uses: metacraft-labs/solana-toolchain-install-action@v0.2
47+
- run: sudo apt-get update && sudo apt-get install -y pkg-config build-essential libudev-dev
48+
49+
- uses: actions/cache@v4
50+
id: cache-solana
51+
with:
52+
path: |
53+
~/.cache/solana
54+
~/.local/share/solana
55+
key: solana-${{ runner.os }}-v0001-stable
56+
57+
- name: Install Solana CLI
58+
if: steps.cache-solana.outputs.cache-hit != 'true'
59+
run: sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.14/install)"
60+
61+
- name: Set Solana path
62+
run: echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
63+
64+
- name: Create default keypair
65+
run: solana-keygen new -s --no-bip39-passphrase --force
66+
4867
- uses: actions/cache@v4
4968
with:
5069
path: |

0 commit comments

Comments
 (0)