Skip to content

Commit 1e75b51

Browse files
authored
feat(lazer): upgrade anchor example to anchor 0.31 (#61)
1 parent 66c61da commit 1e75b51

File tree

8 files changed

+1150
-782
lines changed

8 files changed

+1150
-782
lines changed

.github/workflows/ci-lazer-anchor.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions-rust-lang/setup-rust-toolchain@v1
2121
with:
22-
toolchain: 1.82.0
22+
cache-workspaces: "lazer/solana-anchor -> target"
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version: 22
@@ -32,16 +32,11 @@ jobs:
3232
cwd: lazer/solana-anchor/
3333
- name: Install Solana Cli
3434
run: |
35-
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
35+
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.21/install)"
3636
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
37-
- name: Set Solana Cli version
38-
run: agave-install init 1.18.26
3937
- name: Create Solana key
4038
run: solana-keygen new --no-bip39-passphrase
4139
- name: Install Anchor
42-
run: |
43-
rustup install 1.79.0
44-
rustup install nightly-2025-04-15
45-
RUSTFLAGS= cargo +1.79.0 install --git https://github.com/coral-xyz/anchor --tag v0.30.1 --locked anchor-cli
40+
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.31.1 --locked anchor-cli
4641
- name: Run anchor tests
4742
run: pnpm run test:anchor

0 commit comments

Comments
 (0)