Skip to content

Commit b56252e

Browse files
datdenkiknietJohannes Draaijer
authored andcommitted
Disable autoexamples and fix CI test run
1 parent fa587d2 commit b56252e

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959
uses: actions-rs/cargo@v1
6060
with:
6161
command: test
62-
args: --target=${{ matrix.target }} --features ${{ matrix.features }}
62+
# We use `--no-default-features` because compiling `defmt` for non-embedded targets
63+
# doesn't work.
64+
args: --target=${{ matrix.target }} --no-default-features --features ${{ matrix.features }}
6365

6466

6567
# Compilation
@@ -77,7 +79,6 @@ jobs:
7779
- stm32f407
7880
- stm32f417
7981
- stm32f427
80-
- stm32f429
8182
- stm32f437
8283
- stm32f439
8384
- stm32f469
@@ -116,25 +117,33 @@ jobs:
116117
runs-on: ubuntu-20.04
117118
strategy:
118119
matrix:
119-
toolchain:
120-
- stable
121-
target:
122-
- thumbv7m-none-eabi
123-
mcu:
124-
- stm32f107
125-
- stm32f429
126-
- stm32f745
127120
example:
128121
- name: arp-smoltcp
122+
example: arp-smoltcp
129123
features: defmt,smoltcp-phy,smoltcp/socket-raw
130124
- name: arp
125+
example: arp
131126
features: defmt
132127
- name: ip
128+
example: ip
133129
features: defmt,smoltcp-phy,smoltcp/defmt,smoltcp/socket-tcp
134130
- name: pktgen
131+
example: pktgen
135132
features: defmt
136133
- name: rtic-echo
134+
example: rtic-echo
137135
features: rtic-echo-example
136+
- name: rtic-echo with nucleo pins
137+
example: rtic-echo
138+
features: rtic-echo-example,example-nucleo-pins
139+
mcu:
140+
- stm32f107
141+
- stm32f429
142+
- stm32f745
143+
toolchain:
144+
- stable
145+
target:
146+
- thumbv7m-none-eabi
138147
steps:
139148
- name: Checkout
140149
uses: actions/checkout@v3
@@ -151,7 +160,7 @@ jobs:
151160
with:
152161
use-cross: false
153162
command: build
154-
args: --release --target=${{ matrix.target }} --example ${{ matrix.example.name}} --features ${{ matrix.mcu }},${{ matrix.example.features }}
163+
args: --release --target=${{ matrix.target }} --example ${{ matrix.example.example}} --features ${{ matrix.mcu }},${{ matrix.example.features }}
155164

156165
# Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
157166
#

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ keywords = ["ethernet", "eth", "stm32", "stm32f4", "stm32f7"]
99
repository = "https://github.com/stm32-rs/stm32-eth"
1010
documentation = "https://docs.rs/stm32-eth/"
1111
edition = "2018"
12+
autoexamples = false
1213

1314
[badges]
1415
travis-ci = { repository = "astro/stm32-eth", branch = "master" }

examples/common.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![allow(unused_attributes)]
2-
#![no_std]
3-
#![no_main]
42

53
//! Common features used in examples.
64
//!

0 commit comments

Comments
 (0)