-
-
Notifications
You must be signed in to change notification settings - Fork 13
136 lines (123 loc) · 4.18 KB
/
ArduinoBuild.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: ArduinoBuild
on:
push:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**ArduinoBuild.yml'
pull_request:
workflow_dispatch:
inputs:
lgfx_branch:
description: 'LovyanGFX Base branch'
required: true
default: 'develop'
type: choice
options:
- master
- develop
jobs:
matrix_build:
name: ${{ matrix.board }}@${{ matrix.platform-version }}
runs-on: ubuntu-latest
strategy:
matrix:
platform-version:
# ESP32 Core versions
- 1.0.6
#- 2.0.0
#- 2.0.1
#- 2.0.2
#- 2.0.3
#- 2.0.4
#- 2.0.5
#- 2.0.6
# - 2.0.7
# - 2.0.8
# - 2.0.9
- 2.0.11
- 2.0.12
- 2.0.13
- latest
board:
# Supported boards fancy names
- esp32
- esp32wroverkit
- m5stack-core2
- m5stack-core-esp32
- m5stack-cores3
- m5stick-c
- m5stack-fire
- twatch
- ttgo-t1
- d32_pro
- esp32s3box
- odroid_esp32
exclude:
- { board: m5stack-cores3 }
- { board: esp32wroverkit, platform-version: 1.0.6 } # No ESP32-Wrover-Kit board profile before 2.0.0
- { board: esp32s3box, platform-version: 1.0.6 } # No esp32s3box support before 2.0.3
#- { board: esp32s3box, platform-version: 2.0.0 } # No esp32s3box support before 2.0.3
#- { board: esp32s3box, platform-version: 2.0.1 } # No esp32s3box support before 2.0.3
#- { board: esp32s3box, platform-version: 2.0.2 } # No esp32s3box support before 2.0.3
#- { board: esp32s3box, platform-version: 2.0.4 } # broken in 2.0.4, fixed in 2.0.5, see https://github.com/espressif/arduino-esp32/pull/6962/files
include:
# testable boards
- { board: m5stack-cores3, platform-version: latest }
- board: esp32
- board: esp32wroverkit
- board: m5stack-core2
- board: m5stack-core-esp32
- board: m5stick-c
- board: m5stack-fire
- board: twatch
- board: ttgo-t1
- board: d32_pro
- board: esp32s3box
- board: odroid_esp32
# testable sdk versions
- platform-version: 1.0.6
#- platform-version: 2.0.0
#- platform-version: 2.0.1
#- platform-version: 2.0.2
#- platform-version: 2.0.3
#- platform-version: 2.0.4
#- platform-version: 2.0.5
#- platform-version: 2.0.6
# - platform-version: 2.0.7
# - platform-version: 2.0.8
# - platform-version: 2.0.9
- platform-version: 2.0.11
- platform-version: 2.0.12
- platform-version: 2.0.13
- platform-version: latest
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout custom library
uses: actions/checkout@v3
with:
repository: Lovyan03/LovyanGFX
ref: ${{ github.event.inputs.lgfx_branch }}
path: CustomLGFX # must contain string "Custom"
- name: ${{ matrix.board }}
uses: ArminJo/arduino-test-compile@master
with:
# platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
arduino-board-fqbn: esp32:esp32:${{ matrix.board }}
arduino-platform: esp32:esp32@${{ matrix.platform-version }}
#required-libraries: LovyanGFX
extra-arduino-lib-install-args: --no-deps
extra-arduino-cli-args: "--warnings default " # see https://github.com/ArminJo/arduino-test-compile/issues/28
sketch-names: Display.ino
set-build-path: true
# extra-arduino-cli-args: ${{ matrix.extra-arduino-cli-args }}
# build-properties: ${{ toJson(matrix.build-properties) }}
# debug-install: true