Files
wibosim/.github/workflows/firmware.yml
T
db9979andClaude Opus 5.5 4df0926455 0.92.0: Stufen 1–10, Aufgaben passend zu Wochenende und Feiertagen, Diagnose-Export
- CI rot behoben: Freundes-Vorschläge ohne Gleichstand (häufige Gegner vor Clan-Mitgliedern), Test war zufallsabhängig
- Firmware-Workflows: pio über den PATH aufrufen (pipx legt es auf GitHub-Rechnern nicht nach ~/.local/bin)
- Changelog 0.92.0, Version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUhQVoPUusUzxgxLWkK
2026-12-06 09:20:27 +00:00

47 lines
1.7 KiB
YAML

name: Firmware
# Baut die Infomonitor-Firmware (firmware/xteink-x3) und legt Voll-Abbild, OTA-Abbild und manifest.json als
# Artefakt ab. Der Inhalt gehört auf dem Server nach <DATA_DIR>/firmware/xteink-x3/ (docs/INFOMONITOR.md).
# Das Docker-Image bekommt die Firmware zusätzlich im Job „image“ von ci.yml.
on:
push:
branches: [main]
tags: ['v*']
paths: ['firmware/**', '.github/workflows/firmware.yml']
pull_request:
paths: ['firmware/**', '.github/workflows/firmware.yml']
workflow_dispatch:
inputs:
server_url:
description: 'Adresse des Spiels fest einbauen (leer = im Einrichtungs-WLAN eintragen)'
required: false
default: ''
concurrency:
group: firmware-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: firmware/xteink-x3
env:
PLATFORMIO_VERSION: 6.2.0
WIBO_SERVER_URL: ${{ github.event.inputs.server_url }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.platformio
key: pio-${{ runner.os }}-${{ env.PLATFORMIO_VERSION }}-${{ hashFiles('firmware/xteink-x3/platformio.ini') }}
- run: pipx install "platformio==${PLATFORMIO_VERSION}"
- run: pio run -e x3 -e x3-gray # pipx legt pio auf GitHub-Rechnern in einen Ordner im PATH (nicht ~/.local/bin)
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: infomonitor-firmware
path: firmware/xteink-x3/dist
retention-days: 90