24 Commits
Author SHA1 Message Date
kenzok8 18ab33a141 gen-release-body: retry gh api and fail loudly on list failure
#20's release job silently generated a per-build table (9 packages) because
the gh api call to list existing release assets failed and the script fell
back to dist/ only. Now it retries 3x with --paginate and exits non-zero
instead of publishing a partial body, so a transient API/race failure
fails the job rather than shipping a wrong summary.
2026-11-08 20:35:48 +08:00
kenzok8 221a28e153 Remove code comments added in the recent workflow changes 2026-11-08 20:07:15 +08:00
kenzok8 e746fc5a47 release body: group packages by architecture, SDK as column
- Add scripts/gen-release-body.py: rebuilds the latest release body from
  the full cumulative asset list (existing release + this run's dist/),
  one section per architecture, table rows grouped by SDK (25.12 apk
  first, then 24.10 ipk), kernel versions newest-first, with download
  links to the latest tag.
- build.yml release job: checkout + generate BODY.md, publish with
  bodyFile instead of the static inline body, so the page stays
  organized as more kernel versions accumulate.
2026-11-08 18:45:20 +08:00
kenzok8 b513bc62be Publish partial BTF builds too
改动:发布 job 不再要求 sdk/arch 留空,限定单个内核或架构的构建也会发布资产。

原因:资产改为累积后,单点构建只是补齐某个内核版本,不会再冲掉其它资产。
2026-11-08 17:19:43 +08:00
kenzok8 e9c71bbfe4 Build several kernel versions in one run
改动:kernel_version 支持逗号分隔的多个版本,矩阵按 (sdk, arch, kernel) 展开,artifact 名字带上内核号避免撞名。

原因:24.10 各点版本内核不同,用户按 uname -r 精确匹配才装得上 BTF,一次只能编一个版本效率太低。
2026-11-08 16:53:45 +08:00
kenzok8 32e9a6ed9c Keep BTF packages for older kernels
改动:发布不再全量替换 artifacts,改为累积;发布说明写明必须按 uname -r 精确匹配。

原因:24.10 各点版本内核不同,全量替换会把老内核的 BTF 冲掉,历史固件再也找不到匹配的包。
2026-11-08 15:26:20 +08:00
kenzok8 bebda80985 Let the 24.10 lane pin an explicit kernel version
改动:kernel_version 输入对两个 lane 都生效,新增 sdk/arch 过滤(setup job 生成矩阵),限定过滤时跳过发布以免冲掉其它架构的包。

原因:24.10 的点版本内核与分支 HEAD 不一致,BTF 必须按用户实际 uname -r 构建,否则发出的 BTF 对不上任何一台常规设备。
2026-11-08 13:40:50 +08:00
kenzok8 7fa8cdbe30 fix: avoid shell variables in Build/Compile dwarves step
The package build expands Build/Compile twice, so shell variables
written as double-dollar did not survive: the CI log shows the
executed recipe with MAKE_BIN (from $$CMAKE_BIN), ATH (from
$$PATH) and an empty -j (from $$(nproc)) — 'MAKE_BIN: command
not found', Error 127.

Drop shell variables entirely: pick cmake with a make-time wildcard
test, expand PATH with $(PATH) and the job count with
$(shell nproc) — all resolve to literals on the first expansion,
so the second expansion cannot mangle them. Verified locally with a
double-expansion test on the real define block (output identical
after two expansions, cmake path and -j number intact).
2026-11-07 04:43:56 +08:00
kenzok8 0b6ade3e85 fix: build pahole directly from dwarves source
The tools/dwarves/compile target does not exist in the SDK used by CI:
both the plain invocation (run 42230883614) and the CONFIG_DWARVES=y
invocation (run 42259583479) fail with 'No rule to make target
tools/dwarves/compile', even though the SDK tree's tools/Makefile
lists dwarves in builddirs. Stop depending on that target.

Instead, build pahole straight from the dwarves 1.28 tarball (same
source and sha256 as upstream tools/dwarves), installed into the
staging host dir, and skip the build when pahole is already there.
Verified the tarball hash and the cmake requirements (embedded
libbpf, needs libelf/libdw, zlib, argp, obstack from the host tools)
before landing this.
2026-11-07 04:43:56 +08:00
kenzok8 d52f92b461 fix: remove make function reference from Build/Compile comment
The literal '$(if ...)' in the comment inside 'define Build/Compile'
was expanded by make when the variable was evaluated, and 'if' with a
single argument is invalid: 'Makefile:65: *** insufficient number of
arguments (1) to function if. Stop.' Every job died at the download
step before dwarves, the kernel or BTF ever ran. Rewrite the note in
plain words with no make references.
2026-11-07 04:43:56 +08:00
kenzok8 98d6823632 fix: pass CONFIG_DWARVES=y when building dwarves
tools/dwarves 的编译 target 只在它进 tools-y 时才生成,而进 tools-y
的条件是 CONFIG_DWARVES 或 CONFIG_BUILD_ALL_HOST_TOOLS;armv7 SDK
的 .config 里没开,所以光跑 make tools/dwarves/compile 会报
No rule to make target。命令行传 CONFIG_DWARVES=y:命令行变量
优先于 .config(全树无 override CONFIG_*),tools/Makefile
第 150 行的 $(if ...) 随之算成 y,target 规则生成;已编好时
构建系统直接跳过。本地已用同构的最小 Makefile 复现验证:
不带该变量报 No rule,带上则 target 出现。
2026-11-07 04:43:56 +08:00
kenzok8 185414477f fix: build dwarves before shadow kernel; fail loud on empty dist
armv7 24.10 的 SDK 镜像里没有 pahole:上游 tools/dwarves 只在
CONFIG_DWARVES 或 CONFIG_BUILD_ALL_HOST_TOOLS 时才编,而 armv7 imx
不在 KERNEL_DEBUG_INFO_BTF 默认 y 的目标列表里。影子内核开
DEBUG_INFO_BTF,链接 vmlinux 与后续 pahole 编码都需要 pahole。
Build/Compile 开头显式编一次 tools/dwarves,已编好时直接跳过。

另修假绿灯:package/Makefile 里 ifneq ($(IGNORE_ERRORS),),
任何非空值(包括 '0'、true)都算忽略,只有删掉才真失败。
删掉 build.yml 与 debug-build.yml 的 IGNORE_ERRORS;
Collect 加 dist 空校验作第二道网。
2026-11-07 04:43:56 +08:00
kenzok8 02ed7f770f Add debug-build.yml: single-arch verbose build for failure triage
手动触发,只编一个架构 + 一个 SDK:IGNORE_ERRORS=0(失败就地炸掉)、V=s、BUILD_LOG 默认 0(编译输出直接进 job 日志),编完 logs/ 和产物都传上来。只用来定位构建失败,不动主流程 build.yml,不发布 release。
2026-11-06 19:00:18 +08:00
dependabot[bot] 7fbd356984 build(deps): bump actions/upload-artifact from 4 to 7 (#3)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 16:24:38 +08:00
dependabot[bot] 6546a89852 build(deps): bump actions/download-artifact from 4 to 8 (#2)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 16:24:10 +08:00
dependabot[bot] d34306e01a build(deps): bump actions/checkout from 4 to 7 (#1)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 16:23:19 +08:00
kenzok8 cd2f2fed2d ci: track workflow action versions with dependabot
改动:新增 .github/dependabot.yml,github-actions 生态、每周检查、目录 /。

原因:checkout 等 action 已落后几个大版本,靠人工跟进容易漏。
2026-11-06 16:21:15 +08:00
kenzok8 436c6a9753 ci: refresh release date after publishing
改动:release 任务在发布后把 latest 做一次 draft 往返,published_at 刷成当天。

原因:allowUpdates 只换资产,发布页一直显示首次发布(6 月)的时间,看着像没维护。
2026-11-06 12:56:21 +08:00
kenzok8 977a9e82e0 ci: allow pinning the shadow kernel version
改动:vmlinux-btf 增加 BTF_KERNEL_VERSION(默认跟随 SDK),workflow_dispatch 新增 kernel_version 输入,仅覆盖 25.12 半边;release 只在 main 上发布,分支试跑只留 artifact。

原因:SDK 镜像按架构分别重建,x86_64 还停在 6.12.103,重跑只能出旧版本。
2026-11-06 11:10:16 +08:00
kenzok8 1a49c56863 docs(release): use Chinese release notes template
把发布说明换成中文美观版(用途/选包表/一键脚本自动补全/校验),
以后每次构建自动套用,不再被英文版覆盖。
2026-06-21 14:14:36 +08:00
kenzok8 1f8dcd7e45 ci: build all 9 arch × {24.10,25.12} and publish to release latest 2026-06-18 16:52:10 +08:00
kenzok8 010f2090d0 fix(build): fetch kernel source tarball (SDK has no dl/ copy) 2026-06-18 15:56:25 +08:00
kenzok8 49382930ec docs: polished bilingual README (中文 / English) 2026-06-18 15:47:06 +08:00
kenzok8 49ac7b6640 init vmlinux-btf: detached kernel BTF package + SDK build workflow 2026-06-18 15:43:54 +08:00