File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments