-
Notifications
You must be signed in to change notification settings - Fork 207
56 lines (48 loc) · 1.83 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
name: Arduino_CI
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
examples:
[
example/GetBatteryVoltage/GetBatteryVoltage.ino,
example/I2CScan/I2CScan.ino,
example/ImageScroll/ImageScroll.ino,
example/MPR121TouchSensor/MPR121TouchSensor.ino,
example/SerialExample/SerialExample.ino,
example/T-Display-S3-MIDI/T-Display-S3-MIDI.ino,
example/TFT_Rainbow/TFT_Rainbow.ino,
example/arduino_gfx_demo/arduino_gfx_demo.ino,
example/factory/factory.ino,
example/lv_demos/lv_demos.ino,
example/nes/nes.ino,
example/ota/ota.ino,
example/sd/sd.ino,
example/tft/tft.ino,
example/touch_test/touch_test.ino,
example/usb_hid_pad/usb_hid_pad.ino,
]
env:
EXAMPLES: ${{matrix.examples}}
steps:
- uses: actions/checkout@v3
- name: Install Arduino Ci
run: |
wget https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz -O arduino-cli.tar.gz ;
sudo tar xf arduino-cli.tar.gz -C /usr/local/bin arduino-cli ;
arduino-cli config init ;
arduino-cli config add board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json ;
arduino-cli core update-index ;
arduino-cli core install esp32:[email protected] ;
- name: Build examples
run: |
mkdir -p $HOME/Arduino/libraries ;
cp -r lib/* $HOME/Arduino/libraries
cd $HOME/Arduino/libraries ;
git clone https://github.com/moononournation/arduino-nofrendo.git
cd $GITHUB_WORKSPACE ;
arduino-cli compile -besp32:esp32:lilygo_t_display_s3 $PWD/$EXAMPLES ;