Skip to content

Commit 6d17dfe

Browse files
committed
repo: add CI no_std check
1 parent eb5f79d commit 6d17dfe

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
matrix:
@@ -26,6 +25,21 @@ jobs:
2625
- name: Run tests
2726
run: cargo test --verbose
2827

28+
build_no_std:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
rust:
33+
- stable
34+
- nightly
35+
- 1.52.1 # MSVR
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: "Rustup: install some no_std target"
39+
run: rustup target add thumbv7em-none-eabihf
40+
- name: Build (no_std)
41+
run: cargo build --target thumbv7em-none-eabihf
42+
2943

3044
# As discussed, these tasks are optional for PRs.
3145
style_checks:

0 commit comments

Comments
 (0)