-
-
Notifications
You must be signed in to change notification settings - Fork 7
29 lines (27 loc) · 880 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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
src: [examples/CommandSniffer, examples/DataLogger, examples/LapCounter, examples/StartLight]
framework: [mbed, arduino]
include:
- framework: mbed
boards: -b nucleo_f446re
- framework: arduino
boards: -b uno -b pico -b nodemcuv2 -b nodemcu-32s
steps:
- uses: actions/checkout@v3
- name: Install platformio and its dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
pio update
- name: Compile ${{ matrix.framework }}
run: |
pio ci -v -l src -O framework=${{ matrix.framework }} ${{ matrix.boards }}
env:
PLATFORMIO_CI_SRC: ${{ matrix.src }}