Windows shouldnt need anymore special env setup
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Examples
|
name: CI Examples
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manually start a workflow
|
workflow_dispatch: # Manually start a workflow
|
||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, windows-2022, macos-14]
|
os: [ubuntu-24.04, windows-2022, macos-15]
|
||||||
example:
|
example:
|
||||||
- "examples/arduino-blink"
|
- "examples/arduino-blink"
|
||||||
- "examples/arduino-rmt-blink"
|
- "examples/arduino-rmt-blink"
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- "examples/arduino-zigbee-switch"
|
- "examples/arduino-zigbee-switch"
|
||||||
- "examples/tasmota"
|
- "examples/tasmota"
|
||||||
- "examples/espidf-arduino-h2zero-BLE_scan"
|
- "examples/espidf-arduino-h2zero-BLE_scan"
|
||||||
- "examples/espidf-arduino-matter-light"
|
#- "examples/espidf-arduino-matter-light"
|
||||||
- "examples/arduino-matter-light"
|
- "examples/arduino-matter-light"
|
||||||
- "examples/espidf-arduino-blink"
|
- "examples/espidf-arduino-blink"
|
||||||
- "examples/espidf-arduino-littlefs"
|
- "examples/espidf-arduino-littlefs"
|
||||||
@@ -45,37 +45,16 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.13"
|
||||||
- name: Install Windows dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
pip install -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.17b2.zip
|
||||||
pio pkg install --global --platform file://.
|
pio pkg install --global --platform file://.
|
||||||
if: "matrix.os == 'windows-2022'"
|
|
||||||
env:
|
|
||||||
PLATFORMIO_CORE_DIR: C:\plat
|
|
||||||
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
|
|
||||||
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
|
|
||||||
- name: Build Windows examples
|
|
||||||
run: pio run -d ${{ matrix.example }}
|
|
||||||
if: "matrix.example != 'examples/tasmota' && matrix.os == 'windows-2022'"
|
|
||||||
env:
|
|
||||||
PLATFORMIO_CORE_DIR: C:\plat
|
|
||||||
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
|
|
||||||
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
|
|
||||||
- name: Install Ubuntu Mac dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install wheel
|
|
||||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip
|
|
||||||
pio pkg install --global --platform file://.
|
|
||||||
if: "matrix.os != 'windows-2022'"
|
|
||||||
- name: git clone Tasmota and add to examples
|
- name: git clone Tasmota and add to examples
|
||||||
run: |
|
run: |
|
||||||
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
|
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
|
||||||
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
|
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
|
||||||
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'"
|
- name: Build examples
|
||||||
- name: Build Ubuntu Mac examples
|
|
||||||
run: pio run -d ${{ matrix.example }}
|
run: pio run -d ${{ matrix.example }}
|
||||||
if: "matrix.os != 'windows-2022'"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user