|
1 |
| -name: Examples |
| 1 | +name: CI Examples |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | workflow_dispatch: # Manually start a workflow
|
|
20 | 20 | - "examples/arduino-wifiscan"
|
21 | 21 | - "examples/arduino-zigbee-light"
|
22 | 22 | - "examples/arduino-zigbee-switch"
|
| 23 | + - "examples/tasmota" |
23 | 24 | - "examples/espidf-arduino-h2zero-BLE_scan"
|
24 | 25 | - "examples/espidf-arduino-matter-light"
|
25 | 26 | - "examples/espidf-arduino-blink"
|
|
57 | 58 | PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
|
58 | 59 | - name: Build Windows examples
|
59 | 60 | run: pio run -d ${{ matrix.example }}
|
60 |
| - if: "matrix.os == 'windows-2022'" |
| 61 | + if: "matrix.example != 'examples/tasmota' && matrix.os == 'windows-2022'" |
61 | 62 | env:
|
62 | 63 | PLATFORMIO_CORE_DIR: C:\plat
|
63 | 64 | PLATFORMIO_PACKAGES_DIR: C:\plat\pack
|
|
68 | 69 | pip install wheel
|
69 | 70 | pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
70 | 71 | 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 |
72 | 77 | - 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