Better output format for home automation #5
Workflow file for this run
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 | |
on: | |
push: | |
paths: # only run if firmware changes | |
- 'firmware/**' | |
- '.github/workflows/firmware.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./firmware/esp32/gdoor | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Build PlatformIO Project | |
run: pio run | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gdoor_firmware | |
path: ./firmware/esp32/gdoor/.pio/build/GDOOR_ESP32MINI/*.bin |