Skip to content

Commit 3dfac9a

Browse files
Crzyrndmnicholasbishop
authored andcommitted
ci: Build ensure_no_std to verify std/alloc are optional
1 parent 5aaa07a commit 3dfac9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ jobs:
4343
- run: cargo install cargo-readme
4444
- run: cargo fmt --check
4545
- run: cargo test
46+
47+
# Ensure that the library doesn't depend on std/alloc. A binary
48+
# that depends on the library is used for this (instead of
49+
# directly build the library), otherwise accidentally depending on
50+
# `alloc` would not result in an error.
4651
- name: cargo build no_std
4752
run: cargo build --target thumbv7m-none-eabi --no-default-features
53+
working-directory: ci/ensure_no_std
54+
4855
- run: cargo clippy --all-features
4956
- run: cargo doc --all-features
5057
- name: Ensure README.md is updated

0 commit comments

Comments
 (0)