71
71
- name : cargo fmt
72
72
run : cargo fmt --check --all
73
73
74
- # runs cargo clippy --workspace --all-targets --all-features
75
- cargo-clippy :
74
+ cargo-clippy-default-features :
76
75
name : cargo clippy
77
76
runs-on : SubtensorCI
78
77
strategy :
@@ -117,8 +116,56 @@ jobs:
117
116
with :
118
117
key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
119
118
120
- - name : cargo clippy --workspace --all-targets --all-features
121
- run : cargo clippy --workspace --all-targets --all-features
119
+ - name : cargo clippy --workspace --all-targets -- -D warnings
120
+ run : cargo clippy --workspace --all-targets -- -D warnings
121
+
122
+ cargo-clippy-all-features :
123
+ name : cargo clippy --all-features
124
+ runs-on : SubtensorCI
125
+ strategy :
126
+ matrix :
127
+ rust-branch :
128
+ - nightly-2024-03-05
129
+ rust-target :
130
+ - x86_64-unknown-linux-gnu
131
+ # - x86_64-apple-darwin
132
+ os :
133
+ - ubuntu-latest
134
+ # - macos-latest
135
+ include :
136
+ - os : ubuntu-latest
137
+ # - os: macos-latest
138
+ env :
139
+ RELEASE_NAME : development
140
+ # RUSTFLAGS: -A warnings
141
+ RUSTV : ${{ matrix.rust-branch }}
142
+ RUST_BACKTRACE : full
143
+ RUST_BIN_DIR : target/${{ matrix.rust-target }}
144
+ SKIP_WASM_BUILD : 1
145
+ TARGET : ${{ matrix.rust-target }}
146
+ steps :
147
+ - name : Check-out repository under $GITHUB_WORKSPACE
148
+ uses : actions/checkout@v2
149
+
150
+ - name : Install dependencies
151
+ run : |
152
+ sudo apt-get update &&
153
+ sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
154
+
155
+ - name : Install Rust ${{ matrix.rust-branch }}
156
+ uses :
actions-rs/[email protected]
157
+ with :
158
+ toolchain : ${{ matrix.rust-branch }}
159
+ components : rustfmt, clippy
160
+ profile : minimal
161
+
162
+ - name : Utilize Shared Rust Cache
163
+
164
+ with :
165
+ key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
166
+
167
+ - name : cargo clippy --workspace --all-targets --all-features -- -D warnings
168
+ run : cargo clippy --workspace --all-targets --all-features -- -D warnings
122
169
123
170
# runs cargo test --workspace
124
171
cargo-test :
@@ -279,7 +326,7 @@ jobs:
279
326
280
327
check-feature-propagation :
281
328
name : zepter run check
282
- runs-on : ubuntu-22.04
329
+ runs-on : SubtensorCI
283
330
284
331
steps :
285
332
- name : Install stable Rust
@@ -301,7 +348,7 @@ jobs:
301
348
302
349
check-finney-migrations :
303
350
name : check finney migrations
304
- runs-on : ubuntu-22.04
351
+ runs-on : SubtensorCI
305
352
steps :
306
353
- name : Checkout sources
307
354
uses : actions/checkout@v3
0 commit comments