-
Notifications
You must be signed in to change notification settings - Fork 212
63 lines (57 loc) · 1.42 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
on:
push:
branches: master
pull_request:
merge_group:
name: Continuous integration
jobs:
ci:
name: CI
runs-on: ubuntu-latest
needs: [check]
if: always()
steps:
- name: Done
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
check:
runs-on: ubuntu-latest
strategy:
matrix:
mcu:
- stm32f401
- stm32f405
- stm32f407
- stm32f410
- stm32f411
- stm32f412
- stm32f413
- stm32f415
- stm32f417
- stm32f423
- stm32f427
- stm32f429
- stm32f437
- stm32f439
- stm32f446
- stm32f469
- stm32f479
rust:
- stable
include:
- rust: nightly
mcu: stm32f479
experimental: true
steps:
- uses: actions/checkout@v3
- name: Use the latest ${{ matrix.rust }} rustc
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Add Cortex-M4F target
run: rustup target add thumbv7em-none-eabihf
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
with:
key: v0.17.0-${{ matrix.mcu }}
- uses: actions-rs/cargo@v1
with:
command: check
args: --features=${{ matrix.mcu }},usb_fs,sdio-host,can,i2s,fsmc_lcd,rtic --examples