Skip to content

Commit 9010159

Browse files
committed
no-std: add binary crate to check no_std compliance
1 parent dd1518d commit 9010159

File tree

5 files changed

+1206
-0
lines changed

5 files changed

+1206
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ jobs:
132132
- run: rustc --version
133133
- run: cargo doc --no-deps --document-private-items --all-features
134134

135+
nostd:
136+
runs-on: ubuntu-latest
137+
steps:
138+
- uses: actions/checkout@v2
139+
- uses: actions-rs/toolchain@v1
140+
with:
141+
profile: minimal
142+
toolchain: nightly-2021-07-01
143+
override: true
144+
target: thumbv7em-none-eabi
145+
# Target thumbv7em does not have std
146+
- run: cargo build --target thumbv7em-none-eabi --manifest-path no-std-check/Cargo.toml
147+
135148
udeps:
136149
runs-on: ubuntu-latest
137150
steps:

0 commit comments

Comments
 (0)