Skip to content

Commit f81fc3d

Browse files
committed
Add workflow
1 parent 29cf3d0 commit f81fc3d

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Build(arduino-esp32:2.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-v2-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-v2-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-core-esp32
71+
- m5stack-core2
72+
- m5stack-coreink
73+
- m5stack-cores3
74+
- m5stack-fire
75+
76+
platform-version:
77+
- 2.0.17
78+
79+
platform:
80+
- esp32
81+
82+
archi:
83+
- esp32
84+
85+
include:
86+
# Specific sketches
87+
- sketch: Transceiver
88+
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
89+
platform: esp32
90+
archi: esp32
91+
platform-version: 2.0.17
92+
board: m5stack-core-esp32
93+
94+
steps:
95+
- name: Checkout
96+
uses: actions/checkout@v4
97+
with:
98+
ref: ${{ github.event.pull_request.head.sha }}
99+
100+
# Build
101+
- name: Compile examples
102+
uses: ArminJo/arduino-test-compile@master
103+
with:
104+
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
105+
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
106+
platform-url: ${{ matrix.platform-url }}
107+
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
108+
extra-arduino-cli-args: ${{ matrix.cli-args }}
109+
#build-properties: ${{ matrix.build-properties }}
110+
sketch-names: ${{ matrix.sketch }}.ino
111+
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
112+
#sketches-exclude: ${{ matrix.sketches-exclude }}

0 commit comments

Comments
 (0)