Skip to content

Commit a418120

Browse files
committed
Add CI jobs for no_std checks
1 parent 749729b commit a418120

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,21 @@ jobs:
4040
if: matrix.rust == 'stable'
4141
run: cargo clippy --all-targets -- -D warnings
4242

43+
- name: Run clippy (no_std)
44+
if: matrix.rust == 'stable'
45+
run: cargo clippy --all-targets --no-default-features -- -D warnings
46+
4347
- name: Build
4448
run: cargo build --verbose
4549

4650
- name: Run tests
4751
run: cargo test --verbose
4852

4953
- name: Run tests (no_std)
50-
run: cargo test --no-default-features --features no_std --verbose
54+
run: cargo test --no-default-features --verbose
55+
56+
- name: Check no_std compilation
57+
run: cargo check --no-default-features --verbose
5158

5259
- name: Run tests (nightly features)
5360
if: matrix.rust == 'nightly'

0 commit comments

Comments
 (0)