43
43
env :
44
44
RELEASE_NAME : development
45
45
# RUSTFLAGS: -A warnings
46
- RUSTV : ${{ matrix.rust-branch }}
47
46
RUST_BACKTRACE : full
48
- RUST_BIN_DIR : target/${{ matrix.rust-target }}
49
47
SKIP_WASM_BUILD : 1
50
48
TARGET : ${{ matrix.rust-target }}
51
49
steps :
@@ -55,10 +53,10 @@ jobs:
55
53
- name : Install dependencies
56
54
run : sudo apt-get update && sudo apt-get install -y build-essential
57
55
58
- - name : Install Rust ${{ matrix.rust-branch }}
56
+ - name : Install Rust Nightly
59
57
uses :
actions-rs/[email protected]
60
58
with :
61
- toolchain : ${{ matrix.rust-branch }}
59
+ toolchain : nightly
62
60
components : rustfmt
63
61
profile : minimal
64
62
@@ -84,11 +82,10 @@ jobs:
84
82
env :
85
83
RELEASE_NAME : development
86
84
# RUSTFLAGS: -A warnings
87
- RUSTV : ${{ matrix.rust-branch }}
88
85
RUST_BACKTRACE : full
89
- RUST_BIN_DIR : target/${{ matrix.rust-target }}
90
86
SKIP_WASM_BUILD : 1
91
87
TARGET : ${{ matrix.rust-target }}
88
+ RUST_BIN_DIR : target/${{ matrix.rust-target }}
92
89
steps :
93
90
- name : Check-out repository under $GITHUB_WORKSPACE
94
91
uses : actions/checkout@v4
98
95
sudo apt-get update &&
99
96
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
100
97
101
- - name : Install Rust ${{ matrix.rust-branch }}
102
- uses :
actions-rs/[email protected]
103
- with :
104
- toolchain : ${{ matrix.rust-branch }}
105
- components : rustfmt, clippy
106
- profile : minimal
107
-
108
98
- name : Utilize Shared Rust Cache
109
99
110
100
with :
@@ -128,12 +118,11 @@ jobs:
128
118
# - macos-latest
129
119
env :
130
120
RELEASE_NAME : development
131
- RUSTV : ${{ matrix.rust-branch }}
132
121
RUSTFLAGS : -D warnings
133
122
RUST_BACKTRACE : full
134
- RUST_BIN_DIR : target/${{ matrix.rust-target }}
135
123
SKIP_WASM_BUILD : 1
136
124
TARGET : ${{ matrix.rust-target }}
125
+ RUST_BIN_DIR : target/${{ matrix.rust-target }}
137
126
steps :
138
127
- name : Check-out repository under $GITHUB_WORKSPACE
139
128
uses : actions/checkout@v4
@@ -166,8 +155,6 @@ jobs:
166
155
runs-on : SubtensorCI
167
156
strategy :
168
157
matrix :
169
- rust-branch :
170
- - stable
171
158
rust-target :
172
159
- x86_64-unknown-linux-gnu
173
160
# - x86_64-apple-darwin
@@ -180,7 +167,6 @@ jobs:
180
167
env :
181
168
RELEASE_NAME : development
182
169
# RUSTFLAGS: -A warnings
183
- RUSTV : ${{ matrix.rust-branch }}
184
170
RUST_BACKTRACE : full
185
171
RUST_BIN_DIR : target/${{ matrix.rust-target }}
186
172
SKIP_WASM_BUILD : 1
@@ -194,60 +180,20 @@ jobs:
194
180
sudo apt-get update &&
195
181
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
196
182
197
- - name : Install Rust ${{ matrix.rust-branch }}
198
- uses :
actions-rs/[email protected]
199
- with :
200
- toolchain : ${{ matrix.rust-branch }}
201
- components : rustfmt, clippy
202
- profile : minimal
203
-
204
183
- name : Utilize Shared Rust Cache
205
184
206
185
with :
207
186
key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
208
187
209
188
- name : cargo clippy --workspace --all-targets --all-features -- -D warnings
210
189
run : cargo clippy --workspace --all-targets --all-features -- -D warnings
211
- # runs cargo audit
212
- cargo-audit :
213
- name : cargo audit
214
- runs-on : SubtensorCI
215
- if : ${{ github.event_name != 'push' && !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
216
- steps :
217
- - name : Check-out repositoroy under $GITHUB_WORKSPACE
218
- uses : actions/checkout@v4
219
-
220
- - name : Install dependencies
221
- run : |
222
- sudo apt-get update &&
223
- sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
224
-
225
- - name : Install Rust Stable
226
- uses :
actions-rs/[email protected]
227
- with :
228
- toolchain : stable
229
- components : rustfmt, clippy
230
- profile : minimal
231
-
232
- - name : Utilize Shared Rust Cache
233
-
234
- with :
235
- key : ubuntu-latest-${{ env.RUST_BIN_DIR }}
236
-
237
- - name : Install cargo-audit
238
- run : cargo install cargo-audit
239
-
240
- - name : cargo audit
241
- run : cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
242
190
243
191
# runs cargo test --workspace
244
192
cargo-test :
245
193
name : cargo test
246
194
runs-on : SubtensorCI
247
195
strategy :
248
196
matrix :
249
- rust-branch :
250
- - stable
251
197
rust-target :
252
198
- x86_64-unknown-linux-gnu
253
199
# - x86_64-apple-darwin
@@ -260,7 +206,6 @@ jobs:
260
206
env :
261
207
RELEASE_NAME : development
262
208
# RUSTFLAGS: -A warnings
263
- RUSTV : ${{ matrix.rust-branch }}
264
209
RUST_BACKTRACE : full
265
210
RUST_BIN_DIR : target/${{ matrix.rust-target }}
266
211
SKIP_WASM_BUILD : 1
@@ -274,13 +219,6 @@ jobs:
274
219
sudo apt-get update &&
275
220
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
276
221
277
- - name : Install Rust ${{ matrix.rust-branch }}
278
- uses :
actions-rs/[email protected]
279
- with :
280
- toolchain : ${{ matrix.rust-branch }}
281
- components : rustfmt, clippy
282
- profile : minimal
283
-
284
222
- name : Utilize Rust shared cached
285
223
286
224
with :
@@ -309,7 +247,6 @@ jobs:
309
247
env :
310
248
RELEASE_NAME : development
311
249
# RUSTFLAGS: -A warnings
312
- RUSTV : ${{ matrix.rust-branch }}
313
250
RUST_BACKTRACE : full
314
251
RUST_BIN_DIR : target/${{ matrix.rust-target }}
315
252
SKIP_WASM_BUILD : 1
@@ -323,13 +260,6 @@ jobs:
323
260
sudo apt-get update &&
324
261
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
325
262
326
- - name : Install Rust ${{ matrix.rust-branch }}
327
- uses :
actions-rs/[email protected]
328
- with :
329
- toolchain : ${{ matrix.rust-branch }}
330
- components : rustfmt, clippy
331
- profile : minimal
332
-
333
263
- name : Utilize Rust shared cached
334
264
335
265
with :
@@ -353,12 +283,6 @@ jobs:
353
283
runs-on : SubtensorCI
354
284
355
285
steps :
356
- - name : Install stable Rust
357
- uses : actions-rs/toolchain@v1
358
- with :
359
- profile : minimal
360
- toolchain : stable
361
-
362
286
- name : Install Zepter
363
287
run : cargo install --locked -q zepter && zepter --version
364
288
0 commit comments