From f40a96229c779fcfdf216bc3d14e896dc5222715 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:41:30 +0100 Subject: [PATCH] Update examples.yml --- .github/workflows/examples.yml | 36 +++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index c26cd0f..901393b 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -20,8 +20,9 @@ jobs: - "examples/arduino-wifiscan" - "examples/arduino-zigbee-light" - "examples/arduino-zigbee-switch" + - "examples/tasmota" - "examples/espidf-arduino-h2zero-BLE_scan" - #- "examples/espidf-arduino-matter-light" # Windows compile fails -> Path length limit + - "examples/espidf-arduino-matter-light" - "examples/espidf-arduino-blink" - "examples/espidf-arduino-littlefs" - "examples/espidf-blink" @@ -34,6 +35,7 @@ jobs: - "examples/espidf-storage-sdcard" - "examples/espidf-ulp" - "examples/espidf-ulp-riscv" + - "examples/espidf-ulp-lp" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -43,12 +45,36 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.11" - - name: Install dependencies + - name: Install Windows 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 symlink://. - - name: Build examples + 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: | - pio run -d ${{ matrix.example }} + 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 + run: | + 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 + if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'" + - name: Build Ubuntu Mac examples + run: pio run -d ${{ matrix.example }} + if: "matrix.os != 'windows-2022'"