Reorganize the AI-agent documentation by function area:
- Move the plays/ application archive and experiences into docs/reference/, grouped by contributor <username>/ (flat experience entries + application subdirectories), with a single reference/README entry.
- Add a second level under docs/development/ (engineering/, ci/, release/); fold agent-guide into ai-guide; flatten the six project-completion sub-documents into one file.
- Unify each directory to a single README (drop every INDEX); fold assets/{fonts,images,music} README leaves into assets/README; remove the empty docs/software-design/.
- Add an upstream-PR rule: do not add or modify the repository-root README.
- Update all cross-references and bibliographic links (EN/ZH aligned); validate.sh --static passes. The repository-root README is left untouched.
3.8 KiB
简体中文 · English
Automated Build and Release
.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, 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.
Browser flashing
Open https://ai-passport.folotoy.cn/tools/web-flasher/, connect the USB JTAG/serial device, select the release's merged FoloToy-AI-Passport-full.bin, choose a baud rate such as 460800, and write it from 0x0. The browser performs local writing and verification; it does not upload the firmware file.
For board and flashing details, see the hardware development guide.
Release title
When this repository publishes firmware for several different applications from the same source tree, a bare version number does not tell a user which app a release is for. Give each tag a name that carries the version and the app, and make sure the release title shows both.
- Tag naming convention: name tags as
v<version>-<app-name>in lowercase-kebab-case, e.g.v0.1.0-voice-keychain,v1.0.0-pocket-pomodoro. The<app-name>is the application this release builds (see theplays/<username>/<app-name>/archive naming). A tag that only says a version is ambiguous when several apps share the tree. - After the release is published, confirm the release title. The workflow
sets the title to the tag name, so a correctly-named tag already reads
v0.1.0-voice-keychain. If the tag did not include the app, or the title is not obvious at a glance, edit the release (GitHub:Edit release; GitLab: edit the tag) so the title is<version> <app-name>, e.g.v0.1.0 Voice Keychain. One quick scan of the release list should distinguish which app a release is for. - Keep title and tag consistent. Use
<version>-<app-name>so the app name is visible in both the tag list and the release list. Do not rely on a human-readable body alone to carry the app name.
Release notes
A tag-triggered release succeeds only when the merged firmware and its release notes travel together. After the release is published, write release notes that explain the build to a user who may not have read the repository. Cover three things:
- What's new: the features, behaviors, or fixes this release adds or changes compared with the previous one. Keep it user-facing, not a commit log.
- How to build: how to produce and verify the merged firmware
(
./tools/validate.sh --firmwareoridf.py build), and the artifact file to flash (FoloToy-AI-Passport-full.binflashed from0x0). - How to use: how to flash the build (the browser flasher above) and the key interactions or hardware requirements of the release.
Write the release notes in English (and a Simplified Chinese version where the
project is bilingual) and link them from the GitHub/GitLab release. Keep them
consistent with docs/CHANGELOG.md for user-visible behavior.
Related documents
- Firmware publishing to the community: publish-to-community.md
- Post-release follow-up: project-completion.md