Skip to content

Commit 8a6c777

Browse files
authored
add Tasmota as example for Hybrid compile
1 parent cc0698e commit 8a6c777

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/examples.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Examples
1+
name: CI Examples
22

33
on:
44
workflow_dispatch: # Manually start a workflow
@@ -20,6 +20,7 @@ jobs:
2020
- "examples/arduino-wifiscan"
2121
- "examples/arduino-zigbee-light"
2222
- "examples/arduino-zigbee-switch"
23+
- "examples/tasmota"
2324
- "examples/espidf-arduino-h2zero-BLE_scan"
2425
- "examples/espidf-arduino-matter-light"
2526
- "examples/espidf-arduino-blink"
@@ -57,7 +58,7 @@ jobs:
5758
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
5859
- name: Build Windows examples
5960
run: pio run -d ${{ matrix.example }}
60-
if: "matrix.os == 'windows-2022'"
61+
if: "matrix.example != 'examples/tasmota' && matrix.os == 'windows-2022'"
6162
env:
6263
PLATFORMIO_CORE_DIR: C:\plat
6364
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
@@ -68,7 +69,13 @@ jobs:
6869
pip install wheel
6970
pip install -U https://github.com/platformio/platformio/archive/develop.zip
7071
pio pkg install --global --platform file://.
71-
if: "matrix.os != 'windows-2022'"
72+
- name: git clone Tasmota and add to examples
73+
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'"
74+
run: |
75+
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
76+
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
7277
- name: Build Ubuntu Mac examples
73-
run: pio run -d ${{ matrix.example }}
74-
if: "matrix.os != 'windows-2022'"
78+
if: "matrix.example != 'examples/tasmota' || matrix.os != 'windows-2022'"
79+
run: |
80+
pio run -d ${{ matrix.example }}
81+

0 commit comments

Comments
 (0)