4
4
pull_request :
5
5
6
6
env :
7
- solana_version : v1.17 .0
7
+ solana_version : v1.18 .0
8
8
anchor_version : 0.29.0
9
9
10
10
jobs :
11
11
install :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
15
15
16
- - uses : actions/cache@v3
16
+ - uses : actions/cache@v4
17
17
name : cache solana cli
18
18
id : cache-solana
19
19
with :
22
22
~/.local/share/solana/
23
23
key : solana-${{ runner.os }}-v0000-${{ env.solana_version }}
24
24
25
- - uses : actions/setup-node@v3
25
+ - uses : actions/setup-node@v4
26
26
with :
27
27
node-version : 20
28
28
42
42
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
43
43
yarn --frozen-lockfile --network-concurrency 2
44
44
45
- - uses : dtolnay/rust-toolchain@stable
45
+ - name : install rust
46
+ uses : dtolnay/rust-toolchain@stable
46
47
with :
47
48
toolchain : stable
48
49
61
62
runs-on : ubuntu-latest
62
63
63
64
steps :
64
- - uses : actions/checkout@v3
65
+ - uses : actions/checkout@v4
65
66
- name : Cache rust
66
67
uses : Swatinem/rust-cache@v2
67
68
- name : Run fmt
@@ -73,14 +74,14 @@ jobs:
73
74
needs : install
74
75
runs-on : ubuntu-latest
75
76
steps :
76
- - uses : actions/checkout@v3
77
+ - uses : actions/checkout@v4
77
78
- name : Use Node ${{ matrix.node }}
78
- uses : actions/setup-node@v3
79
+ uses : actions/setup-node@v4
79
80
with :
80
81
node-version : 20
81
82
82
83
- name : Cache node dependencies
83
- uses : actions/cache@v3
84
+ uses : actions/cache@v4
84
85
with :
85
86
path : ' **/node_modules'
86
87
key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
@@ -93,10 +94,18 @@ jobs:
93
94
runs-on : ubuntu-latest
94
95
95
96
steps :
96
- - uses : actions/checkout@v3
97
+ - name : install rust
98
+ uses : dtolnay/rust-toolchain@stable
99
+ with :
100
+ toolchain : stable
101
+
102
+ - name : Cache rust
103
+ uses : Swatinem/rust-cache@v2
104
+
105
+ - uses : actions/checkout@v4
97
106
98
107
- name : Use Node ${{ matrix.node }}
99
- uses : actions/setup-node@v3
108
+ uses : actions/setup-node@v4
100
109
with :
101
110
node-version : 20
102
111
@@ -110,7 +119,7 @@ jobs:
110
119
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
111
120
yarn --frozen-lockfile
112
121
113
- - uses : actions/cache@v3
122
+ - uses : actions/cache@v4
114
123
name : cache solana cli
115
124
id : cache-solana
116
125
with :
@@ -144,6 +153,13 @@ jobs:
144
153
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
145
154
anchor test
146
155
156
+ - name : Install the Bolt CLI and create & build a new project
157
+ run : |
158
+ export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
159
+ cargo install --path cli --force --locked
160
+ bolt init test-project --force
161
+ cd test-project && bolt build
162
+
147
163
- uses : actions/upload-artifact@v3
148
164
if : always()
149
165
with :
0 commit comments