ci: add version consistency check and fully automate release pipeline
Some checks failed
CI / firmware (push) Successful in 1m13s
CI / android (push) Failing after 13s

- New tools/check_versions.sh: verifies version.txt, version.h, SylDaVersions.kt match
- release.yml: 'Verify version consistency' step after build, aborts release if mismatch
- ci.yml: same check after debug APK build
- scripts/release.sh: now runs full pipeline (pio run -> copy firmware -> gradle -> check)
  and refuses dirty working tree
- Untrack version.h, SylDaVersions.kt, release/ — always regenerated fresh from version.txt

Prevents the v1.1 bug where stale generated files caused version mismatch
and infinite re-flash loop.
This commit is contained in:
eddy 2026-08-03 15:28:00 +02:00
commit 6a07505d02
14 changed files with 123 additions and 20 deletions

View file

@ -46,6 +46,9 @@ jobs:
env:
ANDROID_HOME: ${{ vars.ANDROID_HOME || '/home/linuxbrew/.linuxbrew/share/android-commandlinetools' }}
- name: Verify version consistency
run: bash tools/check_versions.sh
- name: Stage APK
run: |
mkdir -p /tmp/ci-artifacts