-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (41 loc) · 1.16 KB
/
check.yaml
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
name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
clang-format:
name: Lint clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clang-format lint
working-directory: firmware
run: find include/ src/ \( -name '*.[ch]pp' -o -name '*.h' \) | xargs clang-format --verbose --style=file -n --Werror
compile-firmware-platform-io:
name: Compile Firmware with PlatformIO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PlatformIO
run: pipx install platformio
- name: Compile the firmware
working-directory: firmware
env:
PLATFORMIO_BUILD_FLAGS: -Werror
run: pio run
compile-firmware-selftest-platform-io:
name: Compile Firmware for Self Test with PlatformIO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PlatformIO
run: pipx install platformio
- name: Compile the firmware for Self Test
working-directory: firmware_selftest
env:
PLATFORMIO_BUILD_FLAGS: -Werror
run: pio run