You've already forked M5Unit-HEART
mirror of
https://github.com/m5stack/M5Unit-HEART.git
synced 2026-05-20 11:28:19 -07:00
Merge branch 'develop'
This commit is contained in:
@@ -12,28 +12,28 @@ on:
|
||||
branches:
|
||||
- '*'
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-esp-v2-build-check.yml'
|
||||
- '.github/workflows/arduino-esp-v2-build-check.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-esp-v2-build-check.yml'
|
||||
- '.github/workflows/arduino-esp-v2-build-check.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@@ -46,13 +46,13 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
name: ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 12
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
#max-parallel: 1
|
||||
max-parallel: 20
|
||||
matrix:
|
||||
platform-url:
|
||||
- https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -60,8 +60,8 @@ jobs:
|
||||
sketch:
|
||||
- PlotToSerial
|
||||
|
||||
unit:
|
||||
- UnitHeart
|
||||
build-properties:
|
||||
- "-DUSING_UNIT_HEART"
|
||||
|
||||
board:
|
||||
- m5stack-atom
|
||||
@@ -84,29 +84,54 @@ jobs:
|
||||
include:
|
||||
# Specific sketches
|
||||
- sketch: GraphicalMeter
|
||||
unit: UnitHeart
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 2.0.17
|
||||
board: m5stack-core-esp32
|
||||
build-properties: "-DUSING_UNIT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 2.0.17
|
||||
board: m5stack-coreink
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: DualSensor
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 2.0.17
|
||||
board: m5stack-coreink
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
#build-properties: ${{ toJson(matrix.build-properties) }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
@@ -12,28 +12,28 @@ on:
|
||||
branches:
|
||||
- '*'
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-esp-v3-build-check.yml'
|
||||
- '.github/workflows/arduino-esp-v3-build-check.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-esp-v3-build-check.yml'
|
||||
- '.github/workflows/arduino-esp-v3-build-check.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@@ -46,13 +46,13 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
name: ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 12
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
#max-parallel: 1
|
||||
max-parallel: 20
|
||||
matrix:
|
||||
platform-url:
|
||||
- https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
@@ -60,19 +60,21 @@ jobs:
|
||||
sketch:
|
||||
- PlotToSerial
|
||||
|
||||
unit:
|
||||
- UnitHeart
|
||||
build-properties:
|
||||
- "-DUSING_UNIT_HEART"
|
||||
|
||||
board:
|
||||
- arduino_nesso_n1
|
||||
- m5stack_atom
|
||||
- m5stack_atoms3
|
||||
- m5stack_capsule
|
||||
# - m5stack_cardputer
|
||||
- m5stack_cardputer
|
||||
- m5stack_core
|
||||
- m5stack_core2
|
||||
- m5stack_coreink
|
||||
- m5stack_cores3
|
||||
- m5stack_dial
|
||||
- m5stack_dinmeter
|
||||
- m5stack_fire
|
||||
- m5stack_nanoc6
|
||||
- m5stack_paper
|
||||
@@ -84,13 +86,14 @@ jobs:
|
||||
# - m5stack_stickc
|
||||
- m5stack_stickc_plus
|
||||
- m5stack_stickc_plus2
|
||||
- m5stack_tab5
|
||||
# - m5stack_timer_cam
|
||||
# - m5stack_tough
|
||||
# - m5stack_unit_cam
|
||||
# - m5stack_unit_cams3
|
||||
|
||||
platform-version:
|
||||
- 3.0.4
|
||||
- 3.3.6
|
||||
|
||||
platform:
|
||||
- esp32
|
||||
@@ -100,70 +103,84 @@ jobs:
|
||||
|
||||
include:
|
||||
# Specific sketches
|
||||
# HAT
|
||||
- sketch: PlotToSerial
|
||||
unit: HatHeart
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_stickc_plus
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
unit: HatHeart
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_stickc_plus2
|
||||
- sketch: GraphicalMeter
|
||||
unit: UnitHeart
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_coreink
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: arduino_nesso_n1
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
#GraphicalMeter
|
||||
- sketch: GraphicalMeter
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_core
|
||||
build-properties: "-DUSING_UNIT_HEART"
|
||||
- sketch: GraphicalMeter
|
||||
unit: HatHeart
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
board: m5stack_stickc_plus
|
||||
- sketch: GraphicalMeter
|
||||
unit: HatHeart
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_stickc_plus2
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: DualSensor
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
board: m5stack_stickc_plus
|
||||
- sketch: DualSensor
|
||||
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
|
||||
platform: esp32
|
||||
archi: esp32
|
||||
platform-version: 3.0.4
|
||||
platform-version: 3.3.6
|
||||
board: m5stack_stickc_plus2
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
#build-properties: ${{ toJson(matrix.build-properties) }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
@@ -12,28 +12,28 @@ on:
|
||||
branches:
|
||||
- '*'
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-m5-build-check.yml'
|
||||
- '.github/workflows/arduino-m5-build-check.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**arduino-m5-build-check.yml'
|
||||
- '.github/workflows/arduino-m5-build-check.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@@ -46,13 +46,13 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
name: ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 12
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
# max-parallel: 1
|
||||
max-parallel: 20
|
||||
matrix:
|
||||
platform-url:
|
||||
- https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
@@ -60,15 +60,17 @@ jobs:
|
||||
sketch:
|
||||
- PlotToSerial
|
||||
|
||||
unit:
|
||||
- UnitHeart
|
||||
build-properties:
|
||||
- "-DUSING_UNIT_HEART"
|
||||
|
||||
board:
|
||||
- arduino_nesso_n1
|
||||
- m5stack_atom
|
||||
- m5stack_atoms3
|
||||
- m5stack_atoms3r
|
||||
- m5stack_capsule
|
||||
# - m5stack_cardputer
|
||||
- m5stack_cardputer
|
||||
# - m5stack_chain_dualkey
|
||||
- m5stack_core
|
||||
- m5stack_core2
|
||||
- m5stack_coreink
|
||||
@@ -76,22 +78,30 @@ jobs:
|
||||
- m5stack_dial
|
||||
- m5stack_dinmeter
|
||||
- m5stack_fire
|
||||
- m5stack_nano_c6
|
||||
# - m5stack_nano_h2
|
||||
- m5stack_paper
|
||||
- m5stack_papers3
|
||||
# - m5stack_poe_cam
|
||||
# - m5stack_powerhub
|
||||
# - m5stack_stamp_c3
|
||||
# - m5stack_stamp_pico
|
||||
- m5stack_stamp_s3
|
||||
# - m5stack_stamplc
|
||||
# - m5stack_station
|
||||
# - m5stack_stickc
|
||||
- m5stack_stickc
|
||||
- m5stack_stickc_plus
|
||||
- m5stack_stickc_plus2
|
||||
- m5stack_sticks3
|
||||
- m5stack_tab5
|
||||
# - m5stack_timer_cam
|
||||
# - m5stack_tough
|
||||
# - m5stack_unit_c6l
|
||||
# - m5stack_unit_cam
|
||||
# - m5stack_unit_cams3
|
||||
|
||||
platform-version:
|
||||
- 2.1.2
|
||||
- 3.2.5
|
||||
|
||||
platform:
|
||||
- m5stack
|
||||
@@ -101,71 +111,93 @@ jobs:
|
||||
|
||||
include:
|
||||
# Specific sketches
|
||||
# HAT
|
||||
- sketch: PlotToSerial
|
||||
unit: HatHeart
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_stickc_plus
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
unit: HatHeart
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_stickc_plus2
|
||||
- sketch: GraphicalMeter
|
||||
unit: UnitHeart
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_sticks3
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_coreink
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
- sketch: PlotToSerial
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
board: arduino_nesso_n1
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
# GraphicalMeter
|
||||
- sketch: GraphicalMeter
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_core
|
||||
build-properties: "-DUSING_UNIT_HEART"
|
||||
- sketch: GraphicalMeter
|
||||
unit: HatHeart
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
board: m5stack_stickc_plus
|
||||
- sketch: GraphicalMeter
|
||||
unit: HatHeart
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_stickc_plus2
|
||||
build-properties: "-DUSING_HAT_HEART"
|
||||
# DualSensor
|
||||
- sketch: DualSensor
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
board: m5stack_stickc_plus
|
||||
- sketch: DualSensor
|
||||
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
|
||||
platform: m5stack
|
||||
archi: esp32
|
||||
platform-version: 2.1.2
|
||||
platform-version: 3.2.5
|
||||
board: m5stack_stickc_plus2
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
#build-properties: ${{ toJson(matrix.build-properties) }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ on:
|
||||
- '**.h'
|
||||
- '**.c'
|
||||
- '**.inl'
|
||||
- '**clang-format-check.yml'
|
||||
- '.github/workflows/clang-format-check.yml'
|
||||
- '**.clang-format'
|
||||
pull_request:
|
||||
paths:
|
||||
@@ -27,7 +27,7 @@ on:
|
||||
- '**.h'
|
||||
- '**.c'
|
||||
- '**.inl'
|
||||
- '**clang-format-check.yml'
|
||||
- '.github/workflows/clang-format-check.yml'
|
||||
- '**.clang-format'
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -55,11 +55,9 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
uses: jidicula/clang-format-action@v4.10.2 # Using include-regex 10.x or later
|
||||
uses: jidicula/clang-format-action@v4.16.0
|
||||
with:
|
||||
clang-format-version: '13'
|
||||
check-path: ${{ matrix.path['check'] }}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
name: Deploy Doxygen docuemnt on GitHub Pages
|
||||
name: Deploy Doxygen document on GitHub Pages
|
||||
on: [release, workflow_dispatch]
|
||||
# branches:
|
||||
# - main
|
||||
# - master
|
||||
permissions:
|
||||
contents: write
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
@@ -8,30 +8,30 @@ on:
|
||||
branches:
|
||||
- '*'
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '/platformio-build-check.yml'
|
||||
- '**platformio.ini'
|
||||
- '.github/workflows/platformio-build-check.yml'
|
||||
- 'platformio.ini'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/unit/**.cpp'
|
||||
- 'src/unit/**.hpp'
|
||||
- 'src/unit/**.h'
|
||||
- 'src/unit/**.c'
|
||||
- 'src/**.cpp'
|
||||
- 'src/**.hpp'
|
||||
- 'src/**.h'
|
||||
- 'src/**.c'
|
||||
- 'examples/UnitUnified/**.ino'
|
||||
- 'examples/UnitUnified/**.cpp'
|
||||
- 'examples/UnitUnified/**.hpp'
|
||||
- 'examples/UnitUnified/**.h'
|
||||
- 'examples/UnitUnified/**.c'
|
||||
- '**/platformio-build-check.yml'
|
||||
- '**platformio.ini'
|
||||
- '.github/workflows/platformio-build-check.yml'
|
||||
- 'platformio.ini'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
@@ -46,11 +46,11 @@ jobs:
|
||||
build:
|
||||
name: ${{ matrix.unit }}:${{ matrix.example }}@${{ matrix.board }}:${{ matrix.framework }}:${{ matrix.espressif32 }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 12
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
#max-parallel: 1
|
||||
max-parallel: 20
|
||||
|
||||
matrix:
|
||||
example:
|
||||
@@ -66,55 +66,28 @@ jobs:
|
||||
- Fire
|
||||
- StampS3
|
||||
- Dial
|
||||
- AtomMatrix
|
||||
- Atom
|
||||
- AtomS3
|
||||
- AtomS3R
|
||||
- NanoC6
|
||||
- StickCPlus
|
||||
- StickCPlus2
|
||||
- StickS3
|
||||
- Paper
|
||||
- CoreInk
|
||||
- Cardputer
|
||||
- Tab5
|
||||
- NessoN1
|
||||
|
||||
framework:
|
||||
- Arduino
|
||||
|
||||
espressif32:
|
||||
- latest
|
||||
# - '5_4_0'
|
||||
# - '4_4_0'
|
||||
|
||||
# exclude:
|
||||
# - board: CoreS3
|
||||
# espressif32: '5_4_0'
|
||||
# - board: CoreS3
|
||||
# espressif32: '4_4_0'
|
||||
# - board: StampS3
|
||||
# espressif32: '5_4_0'
|
||||
# - board: StampS3
|
||||
# espressif32: '4_4_0'
|
||||
# - board: AtomS3
|
||||
# espressif32: '5_4_0'
|
||||
# - board: AtomS3
|
||||
# espressif32: '4_4_0'
|
||||
# - board: Dial
|
||||
# espressif32: '5_4_0'
|
||||
# - board: Dial
|
||||
# espressif32: '4_4_0'
|
||||
# - board: NanoC6
|
||||
# espressif32: '5_4_0'
|
||||
# - board: NanoC6
|
||||
# espressif32: '4_4_0'
|
||||
# - board: StickCPlus
|
||||
# espressif32: '5_4_0'
|
||||
# - board: StickCPlus
|
||||
# espressif32: '4_4_0'
|
||||
# - board: Paper
|
||||
# espressif32: '5_4_0'
|
||||
# - board: Paper
|
||||
# espressif32: '4_4_0'
|
||||
|
||||
include:
|
||||
# Specific sketches
|
||||
# Hat
|
||||
- example: PlotToSerial
|
||||
unit: HatHeart
|
||||
board: StickCPlus
|
||||
@@ -125,36 +98,49 @@ jobs:
|
||||
board: StickCPlus2
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: PlotToSerial
|
||||
unit: HatHeart
|
||||
board: StickS3
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: PlotToSerial
|
||||
unit: HatHeart
|
||||
board: CoreInk
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: PlotToSerial
|
||||
unit: HatHeart
|
||||
board: NessoN1
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
# GraphicalMeter
|
||||
- example: GraphicalMeter
|
||||
unit: UnitHeart
|
||||
board: Core
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: GraphicalMeter
|
||||
unit: HatHeart
|
||||
board: StickCPlus
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: GraphicalMeter
|
||||
unit: HatHeart
|
||||
board: StickCPlus2
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
- example: DualSensor
|
||||
board: StickCPlus
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
# DualSensor
|
||||
- example: DualSensor
|
||||
board: StickCPlus2
|
||||
framework: Arduino
|
||||
espressif32: latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install intelhex
|
||||
run: pip install intelhex
|
||||
|
||||
- name: Build examples
|
||||
uses: karniv00l/platformio-run-action@v1
|
||||
|
||||
Reference in New Issue
Block a user