Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions .github/workflows/arduino-env3-esp-v3-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
name: Build ENVIII(arduino-esp32:3.x)

env:
SKETCH_NAMES_FIND_START: ./examples/UnitUnified/UnitENVIII
REQUIRED_LIBRARIES: M5Unified,M5UnitUnified,BME68x Sensor library,bsec2

on:
push:
tags-ignore:
- '*.*.*'
- 'v*.*.*'
branches:
- '*'
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/UnitENVIII/**.ino'
- 'examples/UnitUnified/UnitENVIII/**.cpp'
- 'examples/UnitUnified/UnitENVIII/**.hpp'
- 'examples/UnitUnified/UnitENVIII/**.h'
- 'examples/UnitUnified/UnitENVIII/**.c'
- '.github/workflows/arduino-env3-esp-v3-build-check.yml'
pull_request:
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/UnitENVIII/**.ino'
- 'examples/UnitUnified/UnitENVIII/**.cpp'
- 'examples/UnitUnified/UnitENVIII/**.hpp'
- 'examples/UnitUnified/UnitENVIII/**.h'
- 'examples/UnitUnified/UnitENVIII/**.c'
- '.github/workflows/arduino-env3-esp-v3-build-check.yml'
workflow_dispatch:

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
runs-on: ubuntu-latest
timeout-minutes: 12

strategy:
fail-fast: false
max-parallel: 20
matrix:
platform-url:
- https://espressif.github.io/arduino-esp32/package_esp32_index.json

sketch:
- PlotToSerial

board:
- arduino_nesso_n1
- m5stack_atom
- m5stack_atoms3
- m5stack_capsule
- m5stack_cardputer
- m5stack_core
- m5stack_core2
- m5stack_coreink
- m5stack_cores3
- m5stack_dial
- m5stack_dinmeter
- m5stack_fire
- m5stack_nanoc6
- m5stack_paper
- m5stack_stamp_s3
- m5stack_stickc_plus
- m5stack_stickc_plus2
- m5stack_tab5

platform-version:
- 3.3.6

platform:
- esp32

archi:
- esp32

build-properties:
- "-DUSING_UNIT_ENV3"

include:
# HatENV3
- sketch: PlotToSerial
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
platform-version: 3.3.6
platform: esp32
archi: esp32
board: m5stack_stickc_plus
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
platform-version: 3.3.6
platform: esp32
archi: esp32
board: m5stack_stickc_plus2
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
platform-version: 3.3.6
platform: esp32
archi: esp32
board: m5stack_coreink
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
platform-version: 3.3.6
platform: esp32
archi: esp32
board: arduino_nesso_n1
build-properties: "-DUSING_HAT_ENV3"

steps:
- name: Checkout
uses: actions/checkout@v4

- 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: arduino/compile-sketches@v1
with:
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 }}
166 changes: 166 additions & 0 deletions .github/workflows/arduino-env3-m5-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
name: Build ENVIII(arduino-m5stack)

env:
SKETCH_NAMES_FIND_START: ./examples/UnitUnified/UnitENVIII
REQUIRED_LIBRARIES: M5Unified,M5UnitUnified,BME68x Sensor library,bsec2

on:
push:
tags-ignore:
- '*.*.*'
- 'v*.*.*'
branches:
- '*'
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/UnitENVIII/**.ino'
- 'examples/UnitUnified/UnitENVIII/**.cpp'
- 'examples/UnitUnified/UnitENVIII/**.hpp'
- 'examples/UnitUnified/UnitENVIII/**.h'
- 'examples/UnitUnified/UnitENVIII/**.c'
- '.github/workflows/arduino-env3-m5-build-check.yml'
pull_request:
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'examples/UnitUnified/UnitENVIII/**.ino'
- 'examples/UnitUnified/UnitENVIII/**.cpp'
- 'examples/UnitUnified/UnitENVIII/**.hpp'
- 'examples/UnitUnified/UnitENVIII/**.h'
- 'examples/UnitUnified/UnitENVIII/**.c'
- '.github/workflows/arduino-env3-m5-build-check.yml'
workflow_dispatch:

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
runs-on: ubuntu-latest
timeout-minutes: 12

strategy:
fail-fast: false
max-parallel: 20
matrix:
platform-url:
- https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

sketch:
- PlotToSerial

board:
- arduino_nesso_n1
- m5stack_atom
- m5stack_atoms3
- m5stack_atoms3r
- m5stack_capsule
- m5stack_cardputer
- m5stack_core
- m5stack_core2
- m5stack_coreink
- m5stack_cores3
- m5stack_dial
- m5stack_dinmeter
- m5stack_fire
- m5stack_nano_c6
- m5stack_paper
- m5stack_papers3
- m5stack_stamp_s3
- m5stack_stickc
- m5stack_stickc_plus
- m5stack_stickc_plus2
- m5stack_sticks3
- m5stack_tab5

platform-version:
- 3.2.5

platform:
- m5stack

archi:
- esp32

build-properties:
- "-DUSING_UNIT_ENV3"

include:
# HatENV3
- sketch: PlotToSerial
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
platform-version: 3.2.5
platform: m5stack
archi: esp32
board: m5stack_stickc_plus
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
platform-version: 3.2.5
platform: m5stack
archi: esp32
board: m5stack_stickc_plus2
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
platform-version: 3.2.5
platform: m5stack
archi: esp32
board: m5stack_sticks3
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
platform-version: 3.2.5
platform: m5stack
archi: esp32
board: m5stack_coreink
build-properties: "-DUSING_HAT_ENV3"
- sketch: PlotToSerial
platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
platform-version: 3.2.5
platform: m5stack
archi: esp32
board: arduino_nesso_n1
build-properties: "-DUSING_HAT_ENV3"

steps:
- name: Checkout
uses: actions/checkout@v4

- 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: arduino/compile-sketches@v1
with:
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 }}
Loading
Loading