refactor(build): unify SDK configuration and release tooling
Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides. Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python. Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
This commit is contained in:
1 parent
a13a54d5ec
commit
0343e2f723
57 files changed
+1858
-375
No files matched your search
@@ -4,7 +4,7 @@ The workflow runs checks first, then Android and Windows compilation concurrentl
|
||||
when compilation is required. Ordinary code PRs stop after compilation and native
|
||||
SDK validation; they skip artifact transfers, Windows packaging and assembly.
|
||||
Documentation-only PRs run checks without compiling either platform. Changes to
|
||||
CI, tooling, native platform configuration, dependencies and app update code
|
||||
CI, tooling, native platform configuration, dependencies, `.fvmrc` and app update code
|
||||
force the full pipeline. Main pushes and manual CI runs always use the full
|
||||
pipeline, preserving the exact-commit artifacts needed by Release.
|
||||
|
||||
@@ -32,8 +32,20 @@ With an ephemeral runner, these user directories must be persisted separately.
|
||||
|
||||
The local `prepare-flutter` action owns cache setup, Flutter version validation,
|
||||
optional Java configuration and locked dependency resolution for the quality,
|
||||
Android and Windows compilation jobs. `FLUTTER_VERSION` is declared once in the
|
||||
CI workflow. The separate `prepare-windows-packaging` action owns the user .NET
|
||||
Android and Windows compilation jobs. `.fvmrc` is the shared local/CI Flutter
|
||||
version source; the action verifies the preinstalled runner SDK against it, without
|
||||
installing FVM or resolving a second SDK. Quality checks also run the Flutter
|
||||
Python version guard and local launcher regression tests. The guard reads `.fvmrc`
|
||||
before probing the runner SDK and requires no PowerShell-specific implementation.
|
||||
Local and CI checks share
|
||||
`tool/check.py --suite analyze|flutter|tools`, including fatal-info analysis,
|
||||
app/package tests, repository hygiene and portable tooling regressions. Each suite
|
||||
remains a separate CI step. `tool/build.py` owns production/release defaults and
|
||||
Android architectures; SDK selection and environment loading use the shared Dart
|
||||
launcher through its Python adapter. The runner continues using its verified
|
||||
preinstalled SDK rather than requiring a project FVM link. Platform builds clear their
|
||||
local native source path environment overrides and never read `.env.local`.
|
||||
The separate `prepare-windows-packaging` action owns the user .NET
|
||||
installation and packaging tool setup, so packaging retries do not resolve
|
||||
Flutter dependencies. Individual setup steps remain visible within each action.
|
||||
|
||||
|
||||
Reference in new issue
Block a user