Skip to content

Commit 5989137

Browse files
authored
Update examples.yml
1 parent 2737497 commit 5989137

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/examples.yml

+22-3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,31 @@ jobs:
3939
uses: actions/setup-python@v5
4040
with:
4141
python-version: "3.11"
42-
- name: Install dependencies
42+
- name: Install Windows dependencies
4343
run: |
4444
python -m pip install --upgrade pip
4545
pip install wheel
4646
pip install -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.16.tar.gz
4747
pio pkg install --global --platform symlink://.
48-
- name: Build examples
48+
if: "matrix.os == 'windows-2022'"
49+
env:
50+
PLATFORMIO_CORE_DIR: C:\plat
51+
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
52+
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
53+
- name: Build Windows examples
54+
run: pio run -d ${{ matrix.example }}
55+
if: "matrix.os == 'windows-2022'"
56+
env:
57+
PLATFORMIO_CORE_DIR: C:\plat
58+
PLATFORMIO_PACKAGES_DIR: C:\plat\pack
59+
PLATFORMIO_PLATFORMS_DIR: C:\plat\plat
60+
- name: Install Ubuntu Mac dependencies
4961
run: |
50-
pio run -d ${{ matrix.example }}
62+
python -m pip install --upgrade pip
63+
pip install wheel
64+
pip install -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.16.tar.gz
65+
pio pkg install --global --platform symlink://.
66+
if: "matrix.os != 'windows-2022'"
67+
- name: Build Ubuntu Mac examples
68+
run: pio run -d ${{ matrix.example }}
69+
if: "matrix.os != 'windows-2022'"

0 commit comments

Comments
 (0)