Skip to content

Merge branch 'main' of https://github.com/aaronbeckmann/ESP-Dashboard… #25

Merge branch 'main' of https://github.com/aaronbeckmann/ESP-Dashboard…

Merge branch 'main' of https://github.com/aaronbeckmann/ESP-Dashboard… #25

name: PlatformIO Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
env: [esp32dev, esp32-s3, esp32-c3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Cache PlatformIO packages
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio-${{ hashFiles('**/platformio.ini') }}
restore-keys: |
${{ runner.os }}-platformio-
- name: Install library deps
run: pio lib install
- name: Run pre-build script (generate header)
run: python scripts/html_to_header_pio.py
- name: Build (matrix env)
run: pio run -e ${{ matrix.env }} -v