Skip to content

Commit 8b6146e

Browse files
ci: install solana cli for anchor test
Added a step to install Solana CLI v1.18.26 in .github/workflows/build.yml. This provides the `cargo-build-sbf` command required by `anchor test`. Co-authored-by: ethan-hurst <23321960+ethan-hurst@users.noreply.github.com>
1 parent f745cf7 commit 8b6146e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
target: x86_64-unknown-linux-gnu
2020
override: true
2121

22+
- name: Install Solana CLI
23+
run: |
24+
sh -c "$(curl -sSfL https://release.solana.com/v1.18.26/install)"
25+
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
26+
2227
- name: Install Anchor
2328
run: |
2429
cargo install --git https://github.com/coral-xyz/anchor --tag v0.31.1 anchor-cli --locked

0 commit comments

Comments
 (0)