raising version 1.1.9 #665
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: PlatformIOBuild | |
env: | |
PROJECT_DIR: examples/Test/build_test | |
on: | |
push: | |
paths: | |
- '**.ino' | |
- '**.cpp' | |
- '**.hpp' | |
- '**.h' | |
- '**.c' | |
- '**PlatformioBuild.yml' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: ${{ matrix.board }}@${{ matrix.platform-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
board: | |
- esp32 | |
- esp32-s2 | |
- esp32-s3 | |
- esp32-c3 | |
- m5stick-c | |
- m5stack-core-esp32 | |
- m5stack-core2 | |
- m5stack-cores3 | |
platform-version: | |
- 1.0.6 | |
#- 2.0.4 | |
- 2.0.5 | |
- 2.0.6 | |
- 2.0.7 | |
- 2.0.8 | |
- default | |
exclude: | |
- { board: esp32-c3, platform-version: 1.0.6 } | |
- { board: esp32-s3, platform-version: 1.0.6 } | |
- { board: esp32-s3, platform-version: default } # 2.0.5 => esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory | |
- { board: esp32-s2, platform-version: 1.0.6 } | |
- { board: m5stack-cores3, platform-version: 1.0.6 } | |
include: | |
- board: esp32 | |
- board: esp32-s2 | |
- board: esp32-s3 | |
- board: esp32-c3 | |
- board: m5stick-c | |
- board: m5stack-core-esp32 | |
- board: m5stack-core2 | |
- board: m5stack-cores3 | |
- { board: esp8266, platform-version: 3.0.0, ... } | |
- { board: esp8266, platform-version: 3.1.0, ... } | |
- { board: esp8266, platform-version: 3.2.0, ... } | |
- { board: seeed_wio_terminal, platform-version: default, ... } | |
- { board: adafruit_pybadge_m4, platform-version: default, ... } | |
- { board: pico, platform-version: default, ... } | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Cache pip | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache PlatformIO | |
uses: actions/cache@v3 | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install PlatformIO | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade platformio | |
- name: Run PlatformIO | |
run: | | |
cd ${{ env.PROJECT_DIR }} | |
export pio_ver=${{ matrix.platform-version }} | |
export pio_env="${pio_ver//./_}" | |
pio pkg install -e ${{ matrix.board }}-$pio_env --no-save --library file://$(realpath ../../../) | |
pio run -e ${{ matrix.board }}-$pio_env |