Skip to content

Commit 8036985

Browse files
authored
Merge pull request #40 from SneezeGUI/ci/platformio-build
ci: add PlatformIO build workflow (ESP32 / S3 / C3)
2 parents 8eaca73 + c6f8c4a commit 8036985

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
build:
10+
name: build ${{ matrix.env }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
# Representative env per chip family (classic ESP32 / S3 / C3)
16+
env: [esp32-2432s028, esp32-s3-devkit, esp32-c3-supermini]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
cache: pip
23+
- name: Cache PlatformIO
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.platformio
27+
key: pio-${{ runner.os }}-${{ hashFiles('platformio.ini') }}
28+
restore-keys: pio-${{ runner.os }}-
29+
- name: Install PlatformIO
30+
run: pip install platformio
31+
- name: Build ${{ matrix.env }}
32+
run: pio run -e ${{ matrix.env }}

0 commit comments

Comments
 (0)