@@ -137,35 +137,67 @@ jobs:
137137 with :
138138 use-cross : false
139139 command : build
140- args : --target=${{ matrix.target }} --example pktgen --features stm32f429
140+ args : --release -- target=${{ matrix.target }} --example pktgen --features stm32f429
141141
142142 - name : cargo build f4 example ip
143143 uses : actions-rs/cargo@v1
144144 with :
145145 use-cross : false
146146 command : build
147- args : --target=${{ matrix.target }} --example ip --features stm32f429,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
147+ args : --release -- target=${{ matrix.target }} --example ip --features stm32f429,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
148148
149149 - name : cargo build f4 example arp
150150 uses : actions-rs/cargo@v1
151151 with :
152152 use-cross : false
153153 command : build
154- args : --target=${{ matrix.target }} --example arp --features stm32f407
154+ args : --release -- target=${{ matrix.target }} --example arp --features stm32f407
155155
156156 - name : cargo build f4 example arp-smoltcp
157157 uses : actions-rs/cargo@v1
158158 with :
159159 use-cross : false
160160 command : build
161- args : --target=${{ matrix.target }} --example arp-smoltcp --features stm32f407,smoltcp-phy,smoltcp/socket-icmp
161+ args : --release -- target=${{ matrix.target }} --example arp-smoltcp --features stm32f407,smoltcp-phy,smoltcp/socket-icmp
162162
163163 - name : cargo build f1 example ip
164164 uses : actions-rs/cargo@v1
165165 with :
166166 use-cross : false
167167 command : build
168- args : --target=${{ matrix.target }} --example ip-f107 --features stm32f107,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
168+ args : --release --target=${{ matrix.target }} --example ip-f107 --features stm32f107,smoltcp-phy,log,smoltcp/socket-tcp,smoltcp/socket-icmp,smoltcp/log,smoltcp/verbose
169+
170+ rtic-echo-example :
171+ name : rtic-echo example
172+ runs-on : ubuntu-20.04
173+ strategy :
174+ matrix :
175+ target :
176+ - thumbv7m-none-eabi
177+ toolchain :
178+ - stable
179+ features :
180+ - stm32f107
181+ - stm32f407
182+ - stm32f765
183+ - rtic-echo-example-altpin,stm32f765
184+ steps :
185+ - name : Checkout
186+ uses : actions/checkout@v3
187+
188+ - name : Install Rust ${{ matrix.toolchain }} with target (${{ matrix.target }})
189+ uses : actions-rs/toolchain@v1
190+ with :
191+ toolchain : ${{ matrix.toolchain }}
192+ target : ${{ matrix.target }}
193+ override : true
194+
195+ - name : build rtic-echo-example with features ${{ matrix.features }}
196+ uses : actions-rs/cargo@v1
197+ with :
198+ use-cross : false
199+ command : build
200+ args : --release --target=${{ matrix.target }} --example rtic-echo --features rtic-echo-example,${{ matrix.features }}
169201
170202 # Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
171203 #
@@ -179,6 +211,7 @@ jobs:
179211 - build
180212 - test
181213 - examples
214+ - rtic-echo-example
182215 runs-on : ubuntu-20.04
183216 steps :
184217 - name : Mark the job as a success
0 commit comments