feat(firmware): preserve mini-program BLE recovery
This commit is contained in:
1 parent
a4cbb02e73
commit
50fd39c144
28 files changed
+441
-23
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
`.github/workflows/build-firmware.yml` builds and publishes firmware for tags and supports manual dispatch. Ordinary branch pushes do not trigger it. Keep this page synchronized with the workflow.
|
||||
|
||||
The build job restores ccache, runs `./tools/validate.sh --firmware` with ESP-IDF 5.5.3 for ESP32-C3, verifies the bootloader at `0x0`, partition table at `0x8000`, application at `0x10000`, and 8 MB Flash arguments, then uploads `FoloToy-AI-Passport-full.bin`. A separate least-privilege release job publishes that artifact only for a tag.
|
||||
The build job restores ccache, runs `./tools/validate.sh --firmware` with ESP-IDF 5.5.3 for ESP32-C3, verifies the bootloader at `0x0`, partition table at `0x8000`, application at `0x10000`, 8 MB Flash arguments, and the complete mini-program BLE compatibility contract, then uploads `FoloToy-AI-Passport-full.bin`. A separate least-privilege release job publishes that artifact only for a tag.
|
||||
|
||||
All Actions are pinned to full commit SHAs. The build job has `contents: read`; only the tag release job receives `contents: write`.
|
||||
|
||||
@@ -62,4 +62,3 @@ consistent with `docs/CHANGELOG.md` for user-visible behavior.
|
||||
|
||||
- Firmware publishing to the community: [publish-to-community.md](publish-to-community.md)
|
||||
- Post-release follow-up: [after-release.md](after-release.md)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
1. **ccache 缓存恢复**:使用 `actions/cache` 缓存编译中间产物(`.ccache`),二次编译大幅提速。缓存 key 含 ref 与 commit SHA;缓存保留时间以仓库的 GitHub Actions 设置为准。
|
||||
2. **编译与验证**(ESP-IDF 5.5.3 / esp32c3):运行与本地相同的 `./tools/validate.sh --firmware`。脚本使用 `sdkconfig.defaults` 和 `partitions.csv` 构建固件,再执行 `idf.py merge-bin`。
|
||||
3. **验证完整固件**:脚本逐字节确认 bootloader、partition-table 和 app 位于 `0x0`、`0x8000` 和 `0x10000`,确认 `flash_args` 使用 8 MB Flash,并输出可从 `0x0` 直刷的 `build/FoloToy-AI-Passport-full.bin`。
|
||||
3. **验证完整固件**:脚本逐字节确认 bootloader、partition-table 和 app 位于 `0x0`、`0x8000` 和 `0x10000`,确认 `flash_args` 使用 8 MB Flash,并完整检查小程序 BLE 兼容契约,最后输出 `build/FoloToy-AI-Passport-full.bin`。
|
||||
4. **上传 artifact**:每次成功构建都上传 `FoloToy-AI-Passport-full.bin`。普通分支只有从该分支手动运行 `workflow_dispatch` 才会构建;普通 push 不触发。
|
||||
5. **发布 tag**:tag 构建完成后,独立 release job 下载上述 artifact,并创建 GitHub Release。
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ This directory contains AI Passport engineering rules and reusable workflows. Ru
|
||||
- [agent-guide.md](agent-guide.md): AI-assisted development workflow.
|
||||
- [environment-setup.md](environment-setup.md): clean-machine bootstrap for AI agents, including international and mainland China download routes.
|
||||
- [build-and-test.md](build-and-test.md): ESP-IDF build and validation.
|
||||
- [ble-recovery-compatibility.md](ble-recovery-compatibility.md): mandatory
|
||||
mini-program BLE install artifact, partition, and bootloader contract.
|
||||
- [coding-conventions.md](coding-conventions.md): source-code and resource conventions.
|
||||
- [CI-validation.md](CI-validation.md): pull-request and main-branch checks.
|
||||
- [CI-build-and-release.md](CI-build-and-release.md): tagged firmware builds and releases.
|
||||
|
||||
Loaded 3 of 28 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user