10
10
- ' solana/**'
11
11
12
12
env :
13
+ ANCHOR_VERSION : 0.30.1
13
14
CARGO_TERM_COLOR : always
14
- RUSTC_VERSION : 1.75.0
15
-
15
+ NODE_VERSION : 20.11.0
16
+ RUSTC_VERSION : 1.81.0
17
+ SOLANA_VERSION : 1.18.15
16
18
jobs :
17
19
cancel-previous-runs :
18
20
runs-on : ubuntu-latest
@@ -22,21 +24,35 @@ jobs:
22
24
with :
23
25
access_token : ${{ github.token }}
24
26
25
- make-cargo-test-all :
26
- name : make cargo-test-all
27
- runs-on : ubuntu-latest
28
- steps :
29
- - uses : actions/checkout@v4
30
- - name : Install toolchain
31
- uses : dtolnay/rust-toolchain@master
32
- with :
33
- toolchain : ${{ env.RUSTC_VERSION }}
34
- - name : make cargo-test-all
35
- run : make cargo-test-all
36
- working-directory : ./solana
27
+ # make-cargo-test-all:
28
+ # name: make cargo-test-all
29
+ # runs-on: ubuntu-latest
30
+ # steps:
31
+ # - uses: actions/checkout@v4
32
+ # - name: Install toolchain
33
+ # uses: dtolnay/rust-toolchain@master
34
+ # with:
35
+ # toolchain: ${{ env.RUSTC_VERSION }}
36
+ # - name: make cargo-test-all
37
+ # run: make cargo-test-all
38
+ # working-directory: ./solana
39
+
40
+ # make-lint:
41
+ # name: make lint
42
+ # runs-on: ubuntu-latest
43
+ # steps:
44
+ # - uses: actions/checkout@v4
45
+ # - name: Install toolchain
46
+ # uses: dtolnay/rust-toolchain@master
47
+ # with:
48
+ # toolchain: ${{ env.RUSTC_VERSION }}
49
+ # components: clippy, rustfmt
50
+ # - name: make lint
51
+ # run: make lint
52
+ # working-directory: ./solana
37
53
38
- make-lint :
39
- name : make lint
54
+ make-check-idl :
55
+ name : make check-idl
40
56
runs-on : ubuntu-latest
41
57
steps :
42
58
- uses : actions/checkout@v4
@@ -45,56 +61,57 @@ jobs:
45
61
with :
46
62
toolchain : ${{ env.RUSTC_VERSION }}
47
63
components : clippy, rustfmt
48
- - name : make lint
49
- run : make lint
50
- working-directory : ./solana
51
-
52
- make-check-idl :
53
- name : make check-idl
54
- runs-on : ubuntu-latest
55
- steps :
56
- - uses : actions/checkout@v4
57
- - uses : metadaoproject/setup-anchor@v2
64
+ - uses : actions/setup-node@v4
58
65
with :
59
- node-version : " 20.11.0"
60
- solana-cli-version : " 1.18.15"
61
- anchor-version : " 0.30.1"
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 anchor-cli --force --version ${{ env.ANCHOR_VERSION }}
75
+ # with:
76
+ # node-version: "20.11.0"
77
+ # solana-cli-version: "1.18.15"
78
+ # anchor-version: "0.30.1"
62
79
- name : make check-idl
63
80
run : make check-idl
64
81
working-directory : ./solana
65
82
66
- make-anchor-test :
67
- name : make anchor-test
68
- runs-on : ubuntu-latest
69
- steps :
70
- - uses : actions/checkout@v4
71
- - name : Install Foundry
72
- uses : foundry-rs/foundry-toolchain@v1
73
- with :
74
- version : nightly
75
- - uses : metadaoproject/setup-anchor@v2
76
- with :
77
- node-version : " 20.11.0"
78
- solana-cli-version : " 1.18.15"
79
- anchor-version : " 0.30.1"
80
- - name : make anchor-test
81
- run : make anchor-test
82
- working-directory : ./solana
83
+ # make-anchor-test:
84
+ # name: make anchor-test
85
+ # runs-on: ubuntu-latest
86
+ # steps:
87
+ # - uses: actions/checkout@v4
88
+ # - name: Install Foundry
89
+ # uses: foundry-rs/foundry-toolchain@v1
90
+ # with:
91
+ # version: nightly
92
+ # - uses: metadaoproject/setup-anchor@v2
93
+ # with:
94
+ # node-version: "20.11.0"
95
+ # solana-cli-version: "1.18.15"
96
+ # anchor-version: "0.30.1"
97
+ # - name: make anchor-test
98
+ # run: make anchor-test
99
+ # working-directory: ./solana
83
100
84
- make-anchor-test-upgrade :
85
- name : make anchor-test-upgrade
86
- runs-on : ubuntu-latest
87
- steps :
88
- - uses : actions/checkout@v4
89
- - name : Install Foundry
90
- uses : foundry-rs/foundry-toolchain@v1
91
- with :
92
- version : nightly
93
- - uses : metadaoproject/setup-anchor@v2
94
- with :
95
- node-version : " 20.11.0"
96
- solana-cli-version : " 1.18.15"
97
- anchor-version : " 0.30.1"
98
- - name : make anchor-test-upgrade
99
- run : make anchor-test-upgrade
100
- working-directory : ./solana
101
+ # make-anchor-test-upgrade:
102
+ # name: make anchor-test-upgrade
103
+ # runs-on: ubuntu-latest
104
+ # steps:
105
+ # - uses: actions/checkout@v4
106
+ # - name: Install Foundry
107
+ # uses: foundry-rs/foundry-toolchain@v1
108
+ # with:
109
+ # version: nightly
110
+ # - uses: metadaoproject/setup-anchor@v2
111
+ # with:
112
+ # node-version: "20.11.0"
113
+ # solana-cli-version: "1.18.15"
114
+ # anchor-version: "0.30.1"
115
+ # - name: make anchor-test-upgrade
116
+ # run: make anchor-test-upgrade
117
+ # working-directory: ./solana
0 commit comments