Blame | Last modification | View Log | RSS feed
name: PlatformIO CIon: [workflow_call, push]jobs:build:runs-on: ubuntu-lateststrategy:matrix:example:- name: publish_and_subscribeboard:- name: lolin_s2_minilibrary: library.jsonexample_root: examples/arduino/espidf_stack/- name: lolin_c3_minilibrary: library.jsonexample_root: examples/arduino/espidf_stack/- name: d1_minilibrary: library.json.esp8266example_root: examples/arduino/legacy_stack/steps:- uses: actions/checkout@v6- uses: actions/cache@v3with:path: |~/.cache/pip~/.platformio/.cachekey: ${{ runner.os }}-pio- uses: actions/setup-python@v4with:python-version: '3.9'- name: Install PlatformIO Corerun: pip install --upgrade platformio- name: Copy library.json to root (if not src is also in root)run: mv ${{ matrix.board.library }} ./library.json || trueif: ${{ matrix.board.library != './library.json' }}- name: Build PlatformIO examplesrun: pio ci --lib="." --board=${{ matrix.board.name }} --project-option="build_unflags=-std=gnu++11" --project-option="build_flags=-std=gnu++17"env:PLATFORMIO_CI_SRC: ${{ matrix.board.example_root }}${{ matrix.example.name }}