-
Notifications
You must be signed in to change notification settings - Fork 69
41 lines (38 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on: [push, pull_request]
name: Continuous integration
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
mcu:
- stm32f722
- stm32f723
- stm32f732
- stm32f733
- stm32f745
- stm32f746
- stm32f756
- stm32f765
- stm32f767
- stm32f769
- stm32f777
- stm32f778
- stm32f779
rust:
- stable
include:
- rust: nightly
mcu: stm32f746
experimental: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: thumbv7em-none-eabihf
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples --release
- run: cargo build --features=${{ matrix.mcu }},rt,usb_fs --examples
- run: cargo build --features=${{ matrix.mcu }},rt,usb_hs --examples
- run: cargo test --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib