2023-03-04 13:33:40 +01:00
|
|
|
name: check
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
pull_request:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-07 02:40:37 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-04 13:33:40 +01:00
|
|
|
- name: Cache pip
|
2023-03-11 05:42:11 +01:00
|
|
|
uses: actions/cache@v3
|
2023-03-04 13:33:40 +01:00
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|
- name: Cache PlatformIO
|
2023-03-11 05:42:11 +01:00
|
|
|
uses: actions/cache@v3
|
2023-03-04 13:33:40 +01:00
|
|
|
with:
|
|
|
|
path: ~/.platformio
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
|
|
|
- name: Set up Python
|
2023-03-11 05:42:25 +01:00
|
|
|
uses: actions/setup-python@v4
|
2023-03-04 13:33:40 +01:00
|
|
|
- name: Install PlatformIO
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install --upgrade platformio
|
|
|
|
pio platform update
|
|
|
|
pio run -t clean
|
|
|
|
- name: Run PlatformIO
|
2023-03-11 08:13:34 +01:00
|
|
|
run: pio run -e esp32 -e esp32c3 -e esp32s3 -e m5stickc -e m5stickc-plus -e m5atom -e macchina-a0
|