#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.
- 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.
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).
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.
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.