Skip to content

Commit 570baf3

Browse files
authored
Update examples.yml
1 parent fe906d0 commit 570baf3

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/examples.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,31 @@ jobs:
4444
uses: actions/setup-python@v5
4545
with:
4646
python-version: "3.11"
47-
- name: Install dependencies
47+
- name: Install Windows dependencies
4848
run: |
4949
python -m pip install --upgrade pip
5050
pip install wheel
5151
pip install -U https://github.com/platformio/platformio/archive/develop.zip
5252
pio pkg install --global --platform symlink://.
53-
- name: Build examples
53+
if: "matrix.os == 'windows-2022'"
54+
env:
55+
PLATFORMIO_CORE_DIR: C:\plat
56+
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
57+
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
58+
- name: Build Windows examples
59+
run: pio run -d ${{ matrix.example }}
60+
if: "matrix.os == 'windows-2022'"
61+
env:
62+
PLATFORMIO_CORE_DIR: C:\plat
63+
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
64+
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
65+
- name: Install Ubuntu Mac dependencies
5466
run: |
55-
pio run -d ${{ matrix.example }}
67+
python -m pip install --upgrade pip
68+
pip install wheel
69+
pip install -U https://github.com/platformio/platformio/archive/develop.zip
70+
pio pkg install --global --platform symlink://.
71+
if: "matrix.os != 'windows-2022'"
72+
- name: Build Ubuntu Mac examples
73+
run: pio run -d ${{ matrix.example }}
74+
if: "matrix.os != 'windows-2022'"

0 commit comments

Comments
 (0)