-
Notifications
You must be signed in to change notification settings - Fork 179
41 lines (36 loc) · 984 Bytes
/
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:
branches: [ staging, trying, master ]
pull_request:
name: Continuous integration
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
mcu:
- stm32f100
- stm32f101
- stm32f103
- stm32f105
- stm32f107
rust:
- stable
include:
- rust: nightly
mcu: stm32f103
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-M3 target
run: rustup target add thumbv7m-none-eabi
- uses: actions-rs/cargo@v1
with:
command: check
args: --features=${{ matrix.mcu }},rt --examples
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib