4343 env :
4444 RELEASE_NAME : development
4545 # RUSTFLAGS: -A warnings
46- RUSTV : ${{ matrix.rust-branch }}
4746 RUST_BACKTRACE : full
48- RUST_BIN_DIR : target/${{ matrix.rust-target }}
4947 SKIP_WASM_BUILD : 1
5048 TARGET : ${{ matrix.rust-target }}
5149 steps :
@@ -55,10 +53,10 @@ jobs:
5553 - name : Install dependencies
5654 run : sudo apt-get update && sudo apt-get install -y build-essential
5755
58- - name : Install Rust ${{ matrix.rust-branch }}
56+ - name : Install Rust Nightly
5957 uses :
actions-rs/[email protected] 6058 with :
61- toolchain : ${{ matrix.rust-branch }}
59+ toolchain : nightly
6260 components : rustfmt
6361 profile : minimal
6462
@@ -84,11 +82,10 @@ jobs:
8482 env :
8583 RELEASE_NAME : development
8684 # RUSTFLAGS: -A warnings
87- RUSTV : ${{ matrix.rust-branch }}
8885 RUST_BACKTRACE : full
89- RUST_BIN_DIR : target/${{ matrix.rust-target }}
9086 SKIP_WASM_BUILD : 1
9187 TARGET : ${{ matrix.rust-target }}
88+ RUST_BIN_DIR : target/${{ matrix.rust-target }}
9289 steps :
9390 - name : Check-out repository under $GITHUB_WORKSPACE
9491 uses : actions/checkout@v4
9895 sudo apt-get update &&
9996 sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
10097
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-
10898 - name : Utilize Shared Rust Cache
10999110100 with :
@@ -128,12 +118,11 @@ jobs:
128118 # - macos-latest
129119 env :
130120 RELEASE_NAME : development
131- RUSTV : ${{ matrix.rust-branch }}
132121 RUSTFLAGS : -D warnings
133122 RUST_BACKTRACE : full
134- RUST_BIN_DIR : target/${{ matrix.rust-target }}
135123 SKIP_WASM_BUILD : 1
136124 TARGET : ${{ matrix.rust-target }}
125+ RUST_BIN_DIR : target/${{ matrix.rust-target }}
137126 steps :
138127 - name : Check-out repository under $GITHUB_WORKSPACE
139128 uses : actions/checkout@v4
@@ -166,8 +155,6 @@ jobs:
166155 runs-on : SubtensorCI
167156 strategy :
168157 matrix :
169- rust-branch :
170- - stable
171158 rust-target :
172159 - x86_64-unknown-linux-gnu
173160 # - x86_64-apple-darwin
@@ -180,7 +167,6 @@ jobs:
180167 env :
181168 RELEASE_NAME : development
182169 # RUSTFLAGS: -A warnings
183- RUSTV : ${{ matrix.rust-branch }}
184170 RUST_BACKTRACE : full
185171 RUST_BIN_DIR : target/${{ matrix.rust-target }}
186172 SKIP_WASM_BUILD : 1
@@ -194,60 +180,20 @@ jobs:
194180 sudo apt-get update &&
195181 sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
196182
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-
204183 - name : Utilize Shared Rust Cache
205184206185 with :
207186 key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
208187
209188 - name : cargo clippy --workspace --all-targets --all-features -- -D warnings
210189 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
242190
243191 # runs cargo test --workspace
244192 cargo-test :
245193 name : cargo test
246194 runs-on : SubtensorCI
247195 strategy :
248196 matrix :
249- rust-branch :
250- - stable
251197 rust-target :
252198 - x86_64-unknown-linux-gnu
253199 # - x86_64-apple-darwin
@@ -260,7 +206,6 @@ jobs:
260206 env :
261207 RELEASE_NAME : development
262208 # RUSTFLAGS: -A warnings
263- RUSTV : ${{ matrix.rust-branch }}
264209 RUST_BACKTRACE : full
265210 RUST_BIN_DIR : target/${{ matrix.rust-target }}
266211 SKIP_WASM_BUILD : 1
@@ -274,13 +219,6 @@ jobs:
274219 sudo apt-get update &&
275220 sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
276221
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-
284222 - name : Utilize Rust shared cached
285223286224 with :
@@ -309,7 +247,6 @@ jobs:
309247 env :
310248 RELEASE_NAME : development
311249 # RUSTFLAGS: -A warnings
312- RUSTV : ${{ matrix.rust-branch }}
313250 RUST_BACKTRACE : full
314251 RUST_BIN_DIR : target/${{ matrix.rust-target }}
315252 SKIP_WASM_BUILD : 1
@@ -323,13 +260,6 @@ jobs:
323260 sudo apt-get update &&
324261 sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
325262
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-
333263 - name : Utilize Rust shared cached
334264335265 with :
@@ -353,12 +283,6 @@ jobs:
353283 runs-on : SubtensorCI
354284
355285 steps :
356- - name : Install stable Rust
357- uses : actions-rs/toolchain@v1
358- with :
359- profile : minimal
360- toolchain : stable
361-
362286 - name : Install Zepter
363287 run : cargo install --locked -q zepter && zepter --version
364288
0 commit comments