Merge pull request #1 from Mecapitronic/fix-codesmell-nested-ifs-S134 #26
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: PlatformIO CI | |
description: Build the project with PlatformIO | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pio-env: [ "Esp32_OTA", "Esp32_NO_WIFI", "Esp32_WITH_WIFI"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
# install the libraries before compiling | |
# otherwise compilation might fail to find the just-installed libraries | |
# - name: Install platformIO libraries | |
# run: pio lib install | |
- name: Build PlatformIO Project | |
run: pio run --environment ${{ matrix.pio-env }} | |