Skip to content

Commit c47ac76

Browse files
upgrade anchor 0.30 to 0.31.0
* update github action
1 parent 16656f5 commit c47ac76

31 files changed

+6070
-4179
lines changed

.github/actions/setup-solana/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ description: "Setup Solana"
33
runs:
44
using: "composite"
55
steps:
6-
- uses: actions/cache@v2
6+
- uses: actions/cache@v4
77
name: Cache Solana Tool Suite
88
id: cache-solana
99
with:
1010
path: |
1111
~/.cache/solana/
1212
~/.local/share/solana/
1313
key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_CLI_VERSION }}
14-
- run: sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_CLI_VERSION }}/install)"
14+
- run: sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_CLI_VERSION }}/install)"
1515
shell: bash
1616
- run: echo "$HOME/.local/share/solana/install/active_release/bin/" >> $GITHUB_PATH
1717
shell: bash

.github/workflows/ci-pr-main-program.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77
- staging
88

99
env:
10-
SOLANA_CLI_VERSION: 1.18.21
11-
NODE_VERSION: 18.14.2
12-
ANCHOR_CLI_VERSION: 0.30.1
10+
SOLANA_CLI_VERSION: 2.1.0
11+
NODE_VERSION: 18.20.6
12+
ANCHOR_CLI_VERSION: 0.31.0
1313

1414
jobs:
1515
program_changed_files:
1616
runs-on: ubuntu-latest
1717
outputs:
1818
program: ${{steps.changed-files-specific.outputs.any_changed}}
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
- name: Get specific changed files
@@ -47,18 +47,21 @@ jobs:
4747
needs: program_changed_files
4848
if: needs.program_changed_files.outputs.program == 'true'
4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5151
- uses: ./.github/actions/setup-solana
5252
- uses: ./.github/actions/setup-dep
5353
- uses: ./.github/actions/setup-anchor
5454
# Install rust + toolchain
55-
- uses: dtolnay/[email protected]
55+
- uses: dtolnay/rust-toolchain@stable
56+
with:
57+
toolchain: stable
58+
components: clippy
5659
# Cache rust, cargo
5760
- uses: Swatinem/rust-cache@v2
5861
with:
5962
prefix-key: "v1"
6063
# Cache node_modules
61-
- uses: actions/cache@v2
64+
- uses: actions/cache@v4
6265
id: cache-node-modules
6366
with:
6467
path: ./node_modules

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ proptest-regressions
1414
base.json
1515

1616
yarn.lock
17-
pnpm-lock.yaml
17+
pnpm-lock.yaml
18+
19+
commands_mainnet

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121

2222
### Breaking Changes
2323

24+
## Program [0.5.0]
25+
26+
### Changed
27+
28+
- Bump `anchor` version to 0.31.0
29+
30+
2431
## Program [0.4.0]
2532
### Added
2633
- Support creating vesting escrow from batch, using root escrow and merkle tree

0 commit comments

Comments
 (0)