Skip to content

Commit db84bab

Browse files
committed
Add CI workflow for rtic-echo-example
1 parent 8ebfe9c commit db84bab

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,38 @@ jobs:
166166
use-cross: false
167167
command: build
168168
args: --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

Comments
 (0)