Repository navigation
128 lines (112 loc) · 3.92 KB
/
Copy pathplatformio-build-check.yml
File metadata and controls
128 lines (112 loc) · 3.92 KB
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
name: Build(platformio)
on:
push:
tags-ignore:
- '*.*.*'
- 'v*.*.*'
branches:
- '*'
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/**.ino'
- 'examples/UnitUnified/**.cpp'
- 'examples/UnitUnified/**.hpp'
- 'examples/UnitUnified/**.h'
- 'examples/UnitUnified/**.c'
- '.github/workflows/platformio-build-check.yml'
- 'platformio.ini'
- 'boards/**'
pull_request:
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/**.ino'
- 'examples/UnitUnified/**.cpp'
- 'examples/UnitUnified/**.hpp'
- 'examples/UnitUnified/**.h'
- 'examples/UnitUnified/**.c'
- '.github/workflows/platformio-build-check.yml'
- 'platformio.ini'
- 'boards/**'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.unit }}:${{ matrix.example }}@${{ matrix.board }}:${{ matrix.framework }}:${{ matrix.espressif32 }}
runs-on: ubuntu-latest
timeout-minutes: 12
strategy:
fail-fast: false
max-parallel: 20
matrix:
unit:
- UnitRTC
example:
- NTPSync
# The hub example goes through UnitPaHub (M5Unit-HUB), so it is built on every representative board
- ViaPaHub
board:
# Reduced from 19 to 5 boards: one per compile config (chip arch x platform).
# The other boards differ only in the variant header, so the library code compiles the same.
- Core
# - Core2 # ESP32: represented by Core
- CoreS3
# - Fire # ESP32: represented by Core
# - StampS3 # ESP32-S3: represented by CoreS3
# - Dial # ESP32-S3: represented by CoreS3
# - Atom # ESP32: represented by Core
# - AtomS3 # ESP32-S3: represented by CoreS3
# - AtomS3R # ESP32-S3: represented by CoreS3
- NanoC6
- NanoH2
# - StickCPlus # ESP32: represented by Core
# - StickCPlus2 # ESP32: represented by Core
# - StickS3 # ESP32-S3: represented by CoreS3
# - Paper # ESP32: represented by Core
# - CoreInk # ESP32: represented by Core
# - Cardputer # ESP32-S3: represented by CoreS3
- Tab5
# - NessoN1 # ESP32-C6: represented by NanoC6
framework:
- Arduino
espressif32:
- latest
# NanoH2 (ESP32-H2) has no Wi-Fi
exclude:
- {board: NanoH2, example: NTPSync}
# AlarmNotify / PeriodicTimer have an env for Core only
include:
- {unit: UnitRTC, example: AlarmNotify, board: Core, framework: Arduino, espressif32: latest}
- {unit: UnitRTC, example: PeriodicTimer, board: Core, framework: Arduino, espressif32: latest}
# NTPSync with the built-in RX8130CE of Tab5 (-DBUILTIN_UNIT_RX8130 in the env)
- {unit: BuiltinRX8130, example: NTPSync, board: Tab5, framework: Arduino, espressif32: latest}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install intelhex
run: pip install intelhex
- name: Build examples
uses: karniv00l/platformio-run-action@v1
with:
environments: ${{ matrix.unit != '' && format('{0}_{1}_{2}_{3}_{4}', matrix.unit, matrix.example, matrix.board, matrix.framework, matrix.espressif32) || format('{0}_{1}_{2}_{3}', matrix.example, matrix.board, matrix.framework, matrix.espressif32) }}
# targets:
project-dir: "./"
project-conf: "./platformio.ini"
# jobs: 6
# silent: false
# verbose: true
# disable-auto-clean: false