Skip to content

Commit d4e2495

Browse files
author
Bengt Lofgren
committed
more voodoo
1 parent 7b83e8a commit d4e2495

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

.github/workflows/solana.yml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,41 +54,39 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- uses: actions/checkout@v4
57-
with:
58-
submodules: true
59-
60-
# Install Rust toolchain (if not already)
61-
- name: Install Rust & components
57+
- name: Install agave-install
6258
run: |
63-
rustup toolchain install stable
64-
rustup default stable
65-
rustup component add rustfmt clippy
66-
working-directory: ./solana
67-
68-
# Install native deps for OpenSSL bindings
69-
- name: Install native deps for OpenSSL bindings
59+
cargo install --locked agave-install
60+
# make sure cargo‐installed binaries are on PATH
61+
source "$HOME/.cargo/env"
62+
- name: Install Solana CLI via agave-install
63+
env:
64+
SOLANA_VERSION: "1.18.15"
7065
run: |
71-
sudo apt-get update
72-
sudo apt-get install -y pkg-config libssl-dev ca-certificates
73-
74-
# Install AVM (Anchor Version Manager) via cargo
66+
# this command will vary depending on how agave-install expects args:
67+
agave-install solana-cli "${SOLANA_VERSION}"
68+
# now add the Solana bin dir to the PATH for later steps
69+
echo "$HOME/.agave/bin" >> $GITHUB_PATH
7570
- name: Install AVM
7671
run: |
7772
cargo install --locked avm
7873
source "$HOME/.cargo/env"
79-
80-
# Use AVM to install the Anchor CLI
81-
- name: Install Anchor CLI via AVM
74+
- name: Install Anchor via AVM
8275
env:
8376
ANCHOR_VERSION: "0.30.1"
8477
run: |
8578
avm install "${ANCHOR_VERSION}" --force
8679
avm use "${ANCHOR_VERSION}"
8780
anchor --version
88-
89-
- name: make check-idl
81+
- name: Install solana-cli
82+
run: |
83+
cargo install solana-cli
84+
- name: Set default Rust toolchain
85+
run: rustup default stable
9086
working-directory: ./solana
87+
- name: make check-idl
9188
run: make check-idl
89+
working-directory: ./solana
9290

9391
make-anchor-test:
9492
name: make anchor-test

0 commit comments

Comments
 (0)