1
- name : CI Examples
1
+ name : 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"
24
23
- " examples/espidf-arduino-h2zero-BLE_scan"
25
24
- " examples/espidf-arduino-matter-light"
26
25
- " examples/espidf-arduino-blink"
@@ -46,37 +45,30 @@ jobs:
46
45
with :
47
46
python-version : " 3.11"
48
47
- name : Install Windows dependencies
49
- if : " matrix.os == 'windows-2022'"
50
48
run : |
51
49
python -m pip install --upgrade pip
52
50
pip install wheel
53
51
pip install -U https://github.com/platformio/platformio/archive/develop.zip
54
52
pio pkg install --global --platform file://.
53
+ if : " matrix.os == 'windows-2022'"
55
54
env :
56
55
PLATFORMIO_CORE_DIR : C:\plat
57
56
PLATFORMIO_PACKAGES_DIR : C:\plat\pack
58
57
PLATFORMIO_PLATFORMS_DIR : C:\plat\plat
59
58
- name : Build Windows examples
60
- if : " matrix.example != 'examples/tasmota' && matrix.os == 'windows-2022'"
61
59
run : pio run -d ${{ matrix.example }}
60
+ if : " matrix.os == 'windows-2022'"
62
61
env :
63
62
PLATFORMIO_CORE_DIR : C:\plat
64
63
PLATFORMIO_PACKAGES_DIR : C:\plat\pack
65
64
PLATFORMIO_PLATFORMS_DIR : C:\plat\plat
66
65
- name : Install Ubuntu Mac dependencies
67
- if : " matrix.os != 'windows-2022'"
68
66
run : |
69
67
python -m pip install --upgrade pip
70
68
pip install wheel
71
69
pip install -U https://github.com/platformio/platformio/archive/develop.zip
72
70
pio pkg install --global --platform file://.
73
- - name : git clone Tasmota and add to examples
74
- if : " matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'"
75
- run : |
76
- git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
77
- cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
71
+ if : " matrix.os != 'windows-2022'"
78
72
- name : Build Ubuntu Mac examples
73
+ run : pio run -d ${{ matrix.example }}
79
74
if : " matrix.os != 'windows-2022'"
80
- run : |
81
- pio run -d ${{ matrix.example }}
82
-
0 commit comments