-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1 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
42
43
# https://doc.rust-lang.org/cargo/guide/continuous-integration.html
name: Cargo Build & Test
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Cargo Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- run: cargo build --verbose
- run: cargo test --verbose
build_boards:
name: Cargo Build (boards)
runs-on: ubuntu-latest
strategy:
matrix:
board:
- stm32l476rg
- stm32h743zi
- stm32f767zi
steps:
- uses: actions/checkout@v4
- run: rustup target add thumbv7em-none-eabihf
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.board }}
- run: cargo build --verbose
working-directory: boards/${{ matrix.board }}