Update examples.yml
This commit is contained in:
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user