Skip to content

Commit 8176f57

Browse files
committed
simplify cargo test CI step, always check benchmarks + other feats
1 parent 26bb8f6 commit 8176f57

File tree

1 file changed

+2
-51
lines changed

1 file changed

+2
-51
lines changed

.github/workflows/check-rust.yml

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -254,57 +254,8 @@ jobs:
254254
with:
255255
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
256256

257-
- name: cargo test --workspace
258-
run: cargo test --workspace
259-
260-
# runs cargo test --workspace --features=runtime-benchmarks
261-
cargo-test-benchmarks:
262-
name: cargo test w/benchmarks
263-
runs-on: SubtensorCI
264-
strategy:
265-
matrix:
266-
rust-branch:
267-
- stable
268-
rust-target:
269-
- x86_64-unknown-linux-gnu
270-
# - x86_64-apple-darwin
271-
os:
272-
- ubuntu-latest
273-
# - macos-latest
274-
include:
275-
- os: ubuntu-latest
276-
# - os: macos-latest
277-
env:
278-
RELEASE_NAME: development
279-
# RUSTFLAGS: -A warnings
280-
RUSTV: ${{ matrix.rust-branch }}
281-
RUST_BACKTRACE: full
282-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
283-
SKIP_WASM_BUILD: 1
284-
TARGET: ${{ matrix.rust-target }}
285-
steps:
286-
- name: Check-out repository under $GITHUB_WORKSPACE
287-
uses: actions/checkout@v4
288-
289-
- name: Install dependencies
290-
run: |
291-
sudo apt-get update &&
292-
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
293-
294-
- name: Install Rust ${{ matrix.rust-branch }}
295-
uses: actions-rs/[email protected]
296-
with:
297-
toolchain: ${{ matrix.rust-branch }}
298-
components: rustfmt, clippy
299-
profile: minimal
300-
301-
- name: Utilize Rust shared cached
302-
uses: Swatinem/[email protected]
303-
with:
304-
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
305-
306-
- name: cargo test --workspace --features=runtime-benchmarks
307-
run: cargo test --workspace --features=runtime-benchmarks
257+
- name: cargo test --workspace --all-features
258+
run: cargo test --workspace --all-features
308259

309260
# ensures cargo fix has no trivial changes that can be applied
310261
cargo-fix:

0 commit comments

Comments
 (0)