7171 - name : cargo fmt
7272 run : cargo fmt --check --all
7373
74- # runs cargo clippy --workspace --all-targets --all-features
75- cargo-clippy :
74+ cargo-clippy-default-features :
7675 name : cargo clippy
7776 runs-on : SubtensorCI
7877 strategy :
@@ -117,8 +116,56 @@ jobs:
117116 with :
118117 key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
119118
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
122169
123170 # runs cargo test --workspace
124171 cargo-test :
@@ -279,7 +326,7 @@ jobs:
279326
280327 check-feature-propagation :
281328 name : zepter run check
282- runs-on : ubuntu-22.04
329+ runs-on : SubtensorCI
283330
284331 steps :
285332 - name : Install stable Rust
@@ -301,7 +348,7 @@ jobs:
301348
302349 check-finney-migrations :
303350 name : check finney migrations
304- runs-on : ubuntu-22.04
351+ runs-on : SubtensorCI
305352 steps :
306353 - name : Checkout sources
307354 uses : actions/checkout@v3
0 commit comments