Add Gitea builds for PlasmaBridge firmware
ESP32 Firmware Builds / firmware-builds (push) Failing after 3m30s
ESP32 Firmware Builds / firmware-builds (push) Failing after 3m30s
This commit is contained in:
1 parent
6e15d6f829
commit
af7c55b223
2 files changed
+64
No files matched your search
@@ -0,0 +1,53 @@
|
|||||||
|
name: ESP32 Firmware Builds
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
firmware-builds:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container:
|
||||||
|
image: python:3.12-bookworm
|
||||||
|
steps:
|
||||||
|
- name: Install Git
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||||
|
shell: bash
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Create local build configuration
|
||||||
|
run: cp include/config.example.h include/config.h
|
||||||
|
shell: bash
|
||||||
|
- name: Install PlatformIO
|
||||||
|
run: python -m pip install --no-cache-dir platformio
|
||||||
|
shell: bash
|
||||||
|
- name: Build SD-card firmware
|
||||||
|
run: pio run -e sd_variant
|
||||||
|
shell: bash
|
||||||
|
- name: Build flash firmware
|
||||||
|
run: pio run -e flash_variant
|
||||||
|
shell: bash
|
||||||
|
- name: Build USB-MSC diagnostic firmware
|
||||||
|
run: pio run -e usb_msc_test
|
||||||
|
shell: bash
|
||||||
|
- name: Upload SD-card firmware artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plasma-bridge-sd-variant
|
||||||
|
path: .pio/build/sd_variant/firmware.bin
|
||||||
|
if-no-files-found: error
|
||||||
|
- name: Upload flash firmware artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plasma-bridge-flash-variant
|
||||||
|
path: .pio/build/flash_variant/firmware.bin
|
||||||
|
if-no-files-found: error
|
||||||
|
- name: Upload USB-MSC diagnostic artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plasma-bridge-usb-msc-test
|
||||||
|
path: .pio/build/usb_msc_test/firmware.bin
|
||||||
|
if-no-files-found: error
|
||||||
@@ -23,6 +23,17 @@ pio run -e sd_variant --target upload # mit SD-Karte
|
|||||||
pio run -e flash_variant --target upload # nur interner Flash, ohne SD-Karte
|
pio run -e flash_variant --target upload # nur interner Flash, ohne SD-Karte
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Automatische Builds in Gitea
|
||||||
|
|
||||||
|
Bei jedem Push und Pull Request baut Gitea Actions die Varianten `sd_variant`,
|
||||||
|
`flash_variant` und `usb_msc_test`. Der Workflow kopiert dafuer
|
||||||
|
`include/config.example.h` zur ignorierten lokalen Datei `include/config.h`.
|
||||||
|
Die Beispielwerte sind Platzhalter: Der Build braucht keine echten WLAN- oder
|
||||||
|
Nextcloud-Zugangsdaten und die erzeugten Artefakte sind nicht ohne eigene
|
||||||
|
Konfiguration fuer die Verbindung mit WLAN/Nextcloud geeignet. Die drei
|
||||||
|
Firmwaredateien stehen nach einem erfolgreichen Lauf als getrennte Actions-
|
||||||
|
Artefakte zum Herunterladen bereit.
|
||||||
|
|
||||||
### `sd_variant` (empfohlen, robuster)
|
### `sd_variant` (empfohlen, robuster)
|
||||||
|
|
||||||
Nutzt eine SPI-SD-Karte als Backing Store. Rohe Sektorzugriffe fuer USB MSC
|
Nutzt eine SPI-SD-Karte als Backing Store. Rohe Sektorzugriffe fuer USB MSC
|
||||||
|
|||||||
Reference in new issue
Block a user