-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.28 KB
/
arduino_ci.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
46
47
48
49
50
51
52
---
name: Arduino_CI
on:
push:
branches: [ master, ros2 ]
jobs:
arduino_ci:
needs: [ cpplint, uncrustify ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: arduino/compile-sketches@v1
with:
sketch-paths: |
- .
fqbn: "esp32:esp32:esp32"
platforms: |
- source-url: https://dl.espressif.com/dl/package_esp32_index.json
name: esp32:esp32
libraries: |
- name: Rosserial Arduino Library
version: 0.9.1
- name: Adafruit BNO055
- name: Adafruit BME280 Library
- name: Adafruit MPR121
- name: arduino-timer
- name: ESP32 AnalogWrite
cpplint:
runs-on: ubuntu-latest
steps:
- name: Setup cpplint
run: |
sudo apt install python3-pip
pip install cpplint
- uses: actions/checkout@v3
- name: Run cpplint
run: |
cpplint --recursive .
uncrustify:
runs-on: ubuntu-latest
steps:
- name: Setup uncrustify
run: |
sudo apt-get install -y uncrustify
- uses: actions/checkout@v3
- name: Run uncrustify
run: |
ls *.ino *.h *.cpp | uncrustify -c code_style.cfg --check -F -