Skip to content

Commit 49a6d1c

Browse files
authored
Create main.yml
1 parent 5702714 commit 49a6d1c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PlatformIO CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Install PlatformIO
23+
run: pip install platformio
24+
25+
- name: Build firmware
26+
run: pio run
27+
28+
# Optional: If you have multiple environments (e.g., esp32, esp32-s3, etc.)
29+
# you can specify one like:
30+
# run: pio run -e esp32dev
31+
32+
- name: Show firmware size
33+
run: pio run -t size

0 commit comments

Comments
 (0)