-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 2.27 KB
/
arduino_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
52
53
54
55
56
57
58
name: Arduino CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Install Python serial library
run: python3 -m pip install pyserial
- name: Arduino CLI Core Index Update
run: |
arduino-cli config init
arduino-cli core update-index
- name: Arduino ESP8266 Platform Installation
run: arduino-cli core install esp8266:esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
- name: Arduino ESP32 Platform Installation
run: arduino-cli core install esp32:esp32
- name: Arduino RP2040 Platform Installation
run: arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
- name: Download Arduino Dependencies
run: git clone https://github.com/fdivitto/fabgl.git
- name: Build Arduino library on ESP8266
run: |
arduino-cli compile --fqbn esp8266:esp8266:nodemcuv2 --library src --build-path build examples/model_on_sd/model_on_sd.ino
arduino-cli compile --fqbn esp8266:esp8266:nodemcuv2 --library src --build-path build examples/xor_example/xor_example.ino
- name: Build Arduino library on ESP32
run: |
arduino-cli compile --fqbn esp32:esp32:esp32wrover --library src --build-path build examples/model_on_sd/model_on_sd.ino
arduino-cli compile --fqbn esp32:esp32:esp32wrover --library src --build-path build examples/xor_example/xor_example.ino
arduino-cli compile --fqbn esp32:esp32:esp32wrover --library src --library fabgl --build-path build examples/ili9341_xor/ili9341_xor.ino
- name: Build Arduino library on RP2040
run: |
arduino-cli compile --fqbn rp2040:rp2040:rpipico --library src --build-path build examples/model_on_sd/model_on_sd.ino
arduino-cli compile --fqbn rp2040:rp2040:rpipico --library src --build-path build examples/xor_example/xor_example.ino