From 570baf36c4bc6f2b9ef2f33cd3ab6e719260599e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:37:14 +0200 Subject: [PATCH] Update examples.yml --- .github/workflows/examples.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) 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'"