Skip to content

Commit

Permalink
Merge pull request #37 from rursprung/only-build-defmt-on-rust-stable
Browse files Browse the repository at this point in the history
only build `defmt` feature on stable rust + update dependencies
  • Loading branch information
eldruin authored May 22, 2024
2 parents a340f5f + d254a71 commit 5856dca
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 46 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
matrix:
rust: [1.62.0, stable]
features: ['use_alloc', 'use_alloc,defmt', 'use_heapless', 'use_heapless,defmt']
exclude:
- rust: 1.62.0
features: 'use_alloc,defmt'
- rust: 1.62.0
features: 'use_heapless,defmt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[target.thumbv7em-none-eabihf]
runner = 'probe-run --chip STM32F401RE'

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
linker = "flip-link"

rustflags = [
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
"-C", "linker=flip-link",
]

[build]
Expand Down
97 changes: 52 additions & 45 deletions examples/stm32f4-event-printer/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5856dca

Please sign in to comment.