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,59 @@ 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 : wtf
74
+ run : cargo build-sbf -- --features integration-test
75
+ - name : Install Anchor
76
+ run : npm i -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
77
+ # with:
78
+ # node-version: "20.11.0"
79
+ # solana-cli-version: "1.18.15"
80
+ # anchor-version: "0.30.1"
62
81
- name : make check-idl
63
82
run : make check-idl
64
83
working-directory : ./solana
65
84
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
85
+ # make-anchor-test:
86
+ # name: make anchor-test
87
+ # runs-on: ubuntu-latest
88
+ # steps:
89
+ # - uses: actions/checkout@v4
90
+ # - name: Install Foundry
91
+ # uses: foundry-rs/foundry-toolchain@v1
92
+ # with:
93
+ # version: nightly
94
+ # - uses: metadaoproject/setup-anchor@v2
95
+ # with:
96
+ # node-version: "20.11.0"
97
+ # solana-cli-version: "1.18.15"
98
+ # anchor-version: "0.30.1"
99
+ # - name: make anchor-test
100
+ # run: make anchor-test
101
+ # working-directory: ./solana
83
102
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
103
+ # make-anchor-test-upgrade:
104
+ # name: make anchor-test-upgrade
105
+ # runs-on: ubuntu-latest
106
+ # steps:
107
+ # - uses: actions/checkout@v4
108
+ # - name: Install Foundry
109
+ # uses: foundry-rs/foundry-toolchain@v1
110
+ # with:
111
+ # version: nightly
112
+ # - uses: metadaoproject/setup-anchor@v2
113
+ # with:
114
+ # node-version: "20.11.0"
115
+ # solana-cli-version: "1.18.15"
116
+ # anchor-version: "0.30.1"
117
+ # - name: make anchor-test-upgrade
118
+ # run: make anchor-test-upgrade
119
+ # working-directory: ./solana
0 commit comments