Skip to content

Commit

Permalink
fix: update anchor gh ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseaidev committed Jul 10, 2024
1 parent 6cd916a commit 11e0016
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,22 @@ jobs:
- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
export PATH="~/.local/share/solana/install/active_release/bin:$PATH"
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
- name: Install Solana Build Tools
run: |
curl -sSf https://raw.githubusercontent.com/solana-labs/solana/v1.17.17/install/solana-install-init.sh | sh -s - v1.17.17
curl -sSf https://raw.githubusercontent.com/solana-labs/solana/v1.17.17/install/solana-install-init.sh | sh -s - v1.18.15
- name: Install Anchor CLI
run: |
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install latest
avm use latest
anchor --version
- name: Generate Keypair
run: |
solana-keygen new
export ANCHOR_WALLET="~/.config/solana/id.json"
- name: Run Integration Tests
run: cd examples/todo-program && anchor test
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
cd examples/todo-program && anchor test

0 comments on commit 11e0016

Please sign in to comment.