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