diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 432e359..05c3fa5 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -44,12 +44,31 @@ 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 + 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.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 symlink://. + if: "matrix.os != 'windows-2022'" + - name: Build Ubuntu Mac examples + run: pio run -d ${{ matrix.example }} + if: "matrix.os != 'windows-2022'"