File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change 10
10
- ' solana/**'
11
11
12
12
env :
13
+ ANCHOR_VERSION : 0.30.1
13
14
CARGO_TERM_COLOR : always
15
+ NODE_VERSION : 20.11.0
14
16
RUSTC_VERSION : 1.75.0
15
-
17
+ SOLANA_VERSION : 1.18.15
16
18
jobs :
17
19
cancel-previous-runs :
18
20
runs-on : ubuntu-latest
@@ -54,14 +56,29 @@ jobs:
54
56
runs-on : ubuntu-latest
55
57
steps :
56
58
- uses : actions/checkout@v4
57
- - uses : metadaoproject/setup-anchor@v2
59
+ - name : Install toolchain
60
+ uses : dtolnay/rust-toolchain@master
58
61
with :
59
- node-version : " 20.11.0"
60
- solana-cli-version : " 1.18.15"
61
- anchor-version : " 0.30.1"
62
- - name : make check-idl
63
- run : make check-idl
64
- working-directory : ./solana
62
+ toolchain : ${{ env.RUSTC_VERSION }}
63
+ components : clippy, rustfmt
64
+ - uses : actions/setup-node@v4
65
+ with :
66
+ node-version : ${{ env.NODE_VERSION }}
67
+ - name : Install Solana CLI tools
68
+ run : sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_VERSION }}/install)"
69
+ shell : bash
70
+ - name : Update PATH
71
+ run : echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
72
+ shell : bash
73
+ - name : Install Anchor
74
+ run : cargo install --git https://github.com/coral-xyz/anchor avm --force --version ${{ env.ANCHOR_VERSION }} # - uses: metadaoproject/setup-anchor@v2
75
+ # with:
76
+ # node-version: "20.11.0"
77
+ # solana-cli-version: "1.18.15"
78
+ # anchor-version: "0.30.1"
79
+ # - name: make check-idl
80
+ # run: make check-idl
81
+ # working-directory: ./solana
65
82
66
83
make-anchor-test :
67
84
name : make anchor-test
You can’t perform that action at this time.
0 commit comments