Update examples.yml

This commit is contained in:
Jason2866
2024-10-13 22:37:14 +02:00
committed by GitHub
parent fe906d060a
commit 570baf36c4
+22 -3
View File
@@ -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'"