From af7c55b2236e14d0a447fe93e694f10ba4e769d3 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sun, 1 Nov 2026 11:24:05 +0100 Subject: [PATCH] Add Gitea builds for PlasmaBridge firmware --- .gitea/workflows/firmware-builds.yaml | 53 +++++++++++++++++++++++++++ README.md | 11 ++++++ 2 files changed, 64 insertions(+) create mode 100644 .gitea/workflows/firmware-builds.yaml diff --git a/.gitea/workflows/firmware-builds.yaml b/.gitea/workflows/firmware-builds.yaml new file mode 100644 index 0000000..dde9502 --- /dev/null +++ b/.gitea/workflows/firmware-builds.yaml @@ -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 diff --git a/README.md b/README.md index 52bbe6f..99d2128 100644 --- a/README.md +++ b/README.md @@ -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 ``` +## 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) Nutzt eine SPI-SD-Karte als Backing Store. Rohe Sektorzugriffe fuer USB MSC