Skip to content

Commit

Permalink
Add CI step for checking no_std compliance on bare-metal target
Browse files Browse the repository at this point in the history
  • Loading branch information
lgiussan committed Oct 3, 2024
1 parent f255921 commit d772f9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CI-ci-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
with:
command: install
args: --debug cargo-make
- name: Install bare-metal target
uses: actions-rs/toolchain@v1
with:
target: thumbv7em-none-eabi
- name: Run CI full (stable)
uses: actions-rs/cargo@v1
with:
Expand Down
6 changes: 6 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ dependencies = ["clean"]
command = "cargo"
args = ["build"]

[tasks.build-bare-metal]
dependencies = ["clean"]
command = "cargo"
args = ["build", "--target", "thumbv7em-none-eabi"]

[tasks.test]
dependencies = ["clean"]
command = "cargo"
Expand Down Expand Up @@ -92,6 +97,7 @@ dependencies = [
[tasks.ci-remote]
dependencies = [
"build",
"build-bare-metal",
"test",
"run-bins",
"format-check",
Expand Down

0 comments on commit d772f9a

Please sign in to comment.