-
Notifications
You must be signed in to change notification settings - Fork 182
51 lines (45 loc) · 1.16 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
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:
- 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 }},rtic,high --examples
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib