Skip to content

Commit f25035a

Browse files
authored
feat(lazer): upgrade solana contract to anchor 0.31 (#2926)
1 parent 5a1c980 commit f25035a

File tree

8 files changed

+4152
-2119
lines changed

8 files changed

+4152
-2119
lines changed

.github/workflows/ci-lazer-solana-contract.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,12 @@ jobs:
3636
run_install: true
3737
- name: Install Solana Cli
3838
run: |
39-
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
39+
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.21/install)"
4040
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
41-
- name: Set Solana Cli version
42-
run: agave-install init 1.18.26
4341
- name: Create Solana key
4442
run: solana-keygen new --no-bip39-passphrase
4543
- name: Install Anchor
46-
run: |
47-
rustup install 1.79.0
48-
# anchor requires nightly for ABI generation and it's broken for more recent nightly versions
49-
rustup install nightly-2025-04-15
50-
# This anchor version doesn't build with newer Rust
51-
RUSTFLAGS= cargo +1.79.0 install --git https://github.com/coral-xyz/anchor --tag v0.30.1 --locked anchor-cli
44+
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.31.1 --locked anchor-cli
5245
- name: Run anchor tests
5346
run: pnpm run test:anchor
5447
- name: check Cargo.toml formatting

0 commit comments

Comments
 (0)