docs: restructure repository documentation and add CI workflows

Restructure project documentation for AI-assisted development, add community issue forms and governance guidance, introduce hardened build/release and fork-sync workflows, and produce a validated 0x0 firmware image for the fixed 8 MB target.
This commit is contained in:
Shinku authored and GitHub committed 2026-08-25 19:21:31 +08:00 Unverified
1 parent 2aa7a49848
commit 151fa6d2c6
43 files changed
+1654 -449

No files matched your search

@@ -0,0 +1,59 @@
name: Feature request / 功能建议
description: Suggest an improvement to the firmware, BSP, hardware, or documentation.
title: "[Feature] "
body:
- type: markdown
attributes:
value: |
Thanks for suggesting an improvement. Do not include credentials, private device links, or personal data.
感谢你的建议。请勿提交凭证、私密设备链接或个人数据。
- type: textarea
id: problem
attributes:
label: Problem or use case / 问题或使用场景
description: What problem should this feature solve, and who benefits from it?
placeholder: Describe the current limitation and the intended use case.
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed behavior / 期望行为
description: Describe the expected user-visible behavior and acceptance criteria.
validations:
required: true
- type: dropdown
id: area
attributes:
label: Affected area / 涉及范围
options:
- Firmware or demo / 固件或示例
- BSP or hardware interface / BSP 或硬件接口
- Documentation or tooling / 文档或工具
- Hardware revision / 硬件版本
- Not sure / 不确定
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered / 已考虑的替代方案
description: List any workarounds or alternative designs you considered.
- type: textarea
id: context
attributes:
label: Additional context / 补充信息
description: Add sanitized logs, diagrams, or links if useful.
- type: checkboxes
id: checks
attributes:
label: Safety check / 安全确认
options:
- label: I removed credentials, private device links, and personal data. / 我已移除凭证、私密设备链接和个人数据。
required: true
+65
View File
@@ -0,0 +1,65 @@
name: Usage question / 使用问题
description: Ask for help building, flashing, configuring, or using AI Passport.
title: "[Question] "
body:
- type: markdown
attributes:
value: |
Please search existing issues first. Security vulnerabilities must be reported through SECURITY.md, not here.
请先搜索已有 issue。安全漏洞必须按 SECURITY.md 私密报告,不要填写在这里。
- type: textarea
id: question
attributes:
label: Question / 问题
description: What are you trying to do, and where are you blocked?
validations:
required: true
- type: input
id: board
attributes:
label: Board revision / 板卡版本
placeholder: For example, production board or PCB revision; write Unknown if unsure.
validations:
required: true
- type: input
id: firmware
attributes:
label: Firmware version / 固件版本
description: Provide a release version, branch name, or commit SHA.
placeholder: For example, v1.0.0 or ea9c823
validations:
required: true
- type: input
id: idf
attributes:
label: ESP-IDF version / ESP-IDF 版本
placeholder: For example, v5.5.3
- type: textarea
id: attempts
attributes:
label: Steps tried and observed result / 已尝试步骤与结果
description: Include commands, expected behavior, and actual behavior.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Sanitized logs / 已脱敏日志
description: Paste relevant logs after removing Wi-Fi credentials, tokens, device secrets, and personal data.
render: shell
- type: checkboxes
id: checks
attributes:
label: Checklist / 确认项
options:
- label: I searched existing issues and documentation. / 我已搜索已有 issue 和文档。
required: true
- label: I removed credentials, private device links, and personal data. / 我已移除凭证、私密设备链接和个人数据。
required: true
+74
View File
@@ -0,0 +1,74 @@
name: Build firmware
on:
push:
tags:
- "**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
outputs:
artifact_name: ${{ steps.artifact_name.outputs.name }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Restore ccache
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: .ccache
key: ccache-${{ github.ref_type }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
ccache-${{ github.ref_type }}-${{ github.ref_name }}-
ccache-
- name: Build firmware (ESP-IDF 5.5.3 / esp32c3)
uses: espressif/esp-idf-ci-action@9d38657f3d789ca759b2b37aaf5ceffbc42c4f0d # v1
with:
esp_idf_version: v5.5.3
target: esp32c3
extra_docker_args: >-
-e CCACHE_DIR=/app/${{ github.repository }}/.ccache
-e IDF_CCACHE_ENABLE=1
command: >-
idf.py -D SDKCONFIG_DEFAULTS=sdkconfig.defaults build &&
idf.py merge-bin -o "$PWD/build/FoloToy-AI-Passport-full.bin"
- name: Set artifact name
id: artifact_name
run: echo "name=passport-${GITHUB_REF_NAME//\//-}" >> "$GITHUB_OUTPUT"
- name: Upload firmware artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ${{ steps.artifact_name.outputs.name }}
path: build/FoloToy-AI-Passport-full.bin
if-no-files-found: error
release:
if: github.ref_type == 'tag'
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download firmware artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ${{ needs.build.outputs.artifact_name }}
path: release
- name: Create release (tag push)
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
with:
name: "${{ github.ref_name }}"
files: release/FoloToy-AI-Passport-full.bin
if-no-files-found: error
Loaded 3 of 43 files, more files were not shown because too many files have changed in this diff. Show more