-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (49 loc) · 1.65 KB
/
test-build.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: Test compiling arduino code
on:
# Runs on all branches but main, when a arduino file is changed
push:
branches-ignore : ["main"]
paths:
- '**.ino'
- '**.h'
- '**.yml'
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Install the Arduino CLI
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
# Install TFT_eSPI
- name: Install TFT_eSPI library to prepare for modifications
run: |
arduino-cli lib install TFT_eSPI
# Copy user_setup from repo to TFT_eSPI folder
- name: Copy User_Setup.h for TFT_eSPI
run: |
\cp -fR DisplayConfig/User_Setup.h ~/Arduino/libraries/TFT_eSPI/
# Build CYD Arduino Code
- uses: arduino/compile-sketches@v1
name: Compile CYD code
continue-on-error: true
with:
fqbn: "esp32:esp32:esp32"
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
# No need to specify ESP-libraries as these are installed with the platform (on the line above).
libraries: |
- name: SpotifyArduino
source-url: https://github.com/witnessmenow/spotify-api-arduino.git
- name: WiFiManager
- name: ESP_DoubleResetDetector
- name: ArduinoJson
- name: JPEGDEC
- name: XPT2046_Touchscreen
sketch-paths: |
- SpotifyDiyThing
enable-warnings-report: true
verbose: false