Skip to content

Release 2024-04-25 01:38:15 +0900 #34

Release 2024-04-25 01:38:15 +0900

Release 2024-04-25 01:38:15 +0900 #34

name: ESP32 Control CI
on:
push:
branches:
- "main"
- "deployment"
paths:
- "hardware/esp32-control/**"
pull_request:
paths:
- "hardware/esp32-control/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hardware/esp32-control
steps:
- uses: actions/checkout@v4
- 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
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Install library dependencies
run: pio lib -g install 1
- name: Run PlatformIO
run: pio run