Update platformio.ini #565
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples | |
on: | |
workflow_dispatch: # Manually start a workflow | |
push: | |
paths-ignore: | |
- '.github/**' # Ignore changes towards the .github directory | |
- '**.md' # Do no build if *.md files changes | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-14] | |
example: | |
- "examples/arduino-blink" | |
- "examples/arduino-rmt-blink" | |
- "examples/arduino-usb-keyboard" | |
- "examples/arduino-wifiscan" | |
- "examples/arduino-zigbee-light" | |
- "examples/arduino-zigbee-switch" | |
- "examples/tasmota" | |
- "examples/espidf-arduino-h2zero-BLE_scan" | |
#- "examples/espidf-arduino-matter-light" | |
- "examples/arduino-matter-light" | |
- "examples/espidf-arduino-blink" | |
- "examples/espidf-arduino-littlefs" | |
- "examples/espidf-blink" | |
- "examples/espidf-coap-server" | |
- "examples/espidf-exceptions" | |
- "examples/espidf-hello-world" | |
- "examples/espidf-http-request" | |
- "examples/espidf-peripherals-uart" | |
- "examples/espidf-peripherals-usb" | |
- "examples/espidf-storage-sdcard" | |
- "examples/espidf-ulp" | |
- "examples/espidf-ulp-riscv" | |
- "examples/espidf-ulp-lp" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- 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 file://. | |
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.example != 'examples/tasmota' && 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: | | |
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 file://. | |
if: "matrix.os != 'windows-2022'" | |
- name: git clone Tasmota and add to examples | |
run: | | |
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota | |
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini | |
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'" | |
- name: Build Ubuntu Mac examples | |
run: pio run -d ${{ matrix.example }} | |
if: "matrix.os != 'windows-2022'" |