Skip to content

Commit 410d887

Browse files
committed
Add RPICT Reader – PlatformIO project (ESP32/C3)
1 parent 1ffd08f commit 410d887

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# ══════════════════════════════════════════════════════════════════════════════
2+
# GitHub Actions – RPICT Reader Build
3+
# Kompiliert automatisch bei jedem Push fuer alle 3 Boards.
4+
# Fertige .bin Dateien werden als Release-Artefakte gespeichert.
5+
# ══════════════════════════════════════════════════════════════════════════════
6+
7+
name: PlatformIO Build
8+
9+
on:
10+
push:
11+
branches: [ main ]
12+
pull_request:
13+
branches: [ main ]
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
environment: [esp32, esp32c3, esp8266]
22+
23+
name: Build [${{ matrix.environment }}]
24+
25+
steps:
26+
27+
# ── Code auschecken ────────────────────────────────────────────────────
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
# ── Python + PlatformIO installieren ───────────────────────────────────
32+
- name: Python einrichten
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: '3.11'
36+
37+
- name: PlatformIO installieren
38+
run: pip install platformio
39+
40+
# ── Kompilieren ────────────────────────────────────────────────────────
41+
- name: Build ${{ matrix.environment }}
42+
run: platformio run --environment ${{ matrix.environment }}
43+
44+
# ── .bin als Artefakt speichern ────────────────────────────────────────
45+
- name: Firmware speichern
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: firmware-${{ matrix.environment }}
49+
path: |
50+
.pio/build/${{ matrix.environment }}/firmware.bin
51+
.pio/build/${{ matrix.environment }}/firmware.elf
52+
if-no-files-found: warn
53+
retention-days: 30

0 commit comments

Comments
 (0)