Skip to content

Commit 5c57e9e

Browse files
committed
Add workflow
1 parent f81fc3d commit 5c57e9e

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
name: Build(arduino-esp32:3.x)
2+
3+
env:
4+
SKETCH_NAMES_FIND_START: ./examples/UnitUnified
5+
REQUIRED_LIBRARIES: M5Unified,M5UnitUnified,M5Unit-HUB
6+
7+
on:
8+
push:
9+
tags-ignore:
10+
- '*.*.*'
11+
- 'v*.*.*'
12+
branches:
13+
- '*'
14+
paths:
15+
- 'src/unit/**.cpp'
16+
- 'src/unit/**.hpp'
17+
- 'src/unit/**.h'
18+
- 'src/unit/**.c'
19+
- 'examples/UnitUnified/**.ino'
20+
- 'examples/UnitUnified/**.cpp'
21+
- 'examples/UnitUnified/**.hpp'
22+
- 'examples/UnitUnified/**.h'
23+
- 'examples/UnitUnified/**.c'
24+
- '**arduino-esp-v3-build-check.yml'
25+
pull_request:
26+
paths:
27+
- 'src/unit/**.cpp'
28+
- 'src/unit/**.hpp'
29+
- 'src/unit/**.h'
30+
- 'src/unit/**.c'
31+
- 'examples/UnitUnified/**.ino'
32+
- 'examples/UnitUnified/**.cpp'
33+
- 'examples/UnitUnified/**.hpp'
34+
- 'examples/UnitUnified/**.h'
35+
- 'examples/UnitUnified/**.c'
36+
- '**arduino-esp-v3-build-check.yml'
37+
workflow_dispatch:
38+
39+
defaults:
40+
run:
41+
shell: bash
42+
43+
concurrency:
44+
group: ${{ github.workflow }}-${{ github.ref }}
45+
cancel-in-progress: true
46+
47+
jobs:
48+
build:
49+
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
50+
runs-on: ubuntu-latest
51+
timeout-minutes: 5
52+
53+
strategy:
54+
fail-fast: false
55+
max-parallel: 20
56+
matrix:
57+
platform-url:
58+
- https://espressif.github.io/arduino-esp32/package_esp32_index.json
59+
60+
sketch:
61+
- PlotToSerial
62+
63+
unit:
64+
- UnitRF433R
65+
- UnitRF433T
66+
67+
board:
68+
- m5stack_atom
69+
- m5stack_atoms3
70+
- m5stack_capsule
71+
# - m5stack_cardputer
72+
- m5stack_core
73+
- m5stack_core2
74+
- m5stack_coreink
75+
- m5stack_cores3
76+
- m5stack_dial
77+
- m5stack_fire
78+
- m5stack_nanoc6
79+
- m5stack_paper
80+
# - m5stack_poe_cam
81+
# - m5stack_stamp_c3
82+
# - m5stack_stamp_pico
83+
- m5stack_stamp_s3
84+
# - m5stack_station
85+
# - m5stack_stickc
86+
- m5stack_stickc_plus
87+
- m5stack_stickc_plus2
88+
# - m5stack_timer_cam
89+
# - m5stack_tough
90+
# - m5stack_unit_cam
91+
# - m5stack_unit_cams3
92+
93+
platform-version:
94+
- 3.1.3
95+
96+
platform:
97+
- esp32
98+
99+
archi:
100+
- esp32
101+
102+
include:
103+
# Specific sketches
104+
- sketch: Transceiver
105+
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
106+
platform: esp32
107+
archi: esp32
108+
platform-version: 3.1.3
109+
board: m5stack_core
110+
111+
steps:
112+
- name: Checkout
113+
uses: actions/checkout@v4
114+
with:
115+
ref: ${{ github.event.pull_request.head.sha }}
116+
117+
# Build
118+
- name: Compile examples
119+
uses: ArminJo/arduino-test-compile@master
120+
with:
121+
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
122+
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
123+
platform-url: ${{ matrix.platform-url }}
124+
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
125+
extra-arduino-cli-args: ${{ matrix.cli-args }}
126+
#build-properties: ${{ matrix.build-properties }}
127+
sketch-names: ${{ matrix.sketch }}.ino
128+
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
129+
#sketches-exclude: ${{ matrix.sketches-exclude }}

0 commit comments

Comments
 (0)