ci: add version consistency check and fully automate release pipeline
- 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:
parent
1d94f088fd
commit
6a07505d02
14 changed files with 123 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -38,6 +38,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: Gather release artifacts
|
||||
run: |
|
||||
mkdir -p release/artifacts
|
||||
|
|
|
|||
Loading…
Reference in a new issue