Fix CI build failures from GitHub release asset HTTP 618 errors #4

Merged
ryujin merged 1 commits from fix/ci-github-asset-download-618 into main 2026-12-01 14:26:01 +00:00
1 Commits
Author SHA1 Message Date
ryujin 59ff86d30f Fix GitHub release asset HTTP 618 failures in build-pak.sh
CI & Pak Build / test (pull_request) Successful in 49s
CI & Pak Build / build-pak (pull_request) Successful in 2m46s
GitHub /releases/download/ URLs return a 302 redirect to
release-assets.githubusercontent.com with a 5-minute signed JWT.
When an intermediate HTTP cache/proxy caches that 302 response past the
JWT expiration (ignoring Cache-Control: no-cache), curl immediately fails
with exit code 22 (HTTP 618 jwt:expired).

- Append a unique cache-busting query parameter per attempt in
  download_if_missing() so each request receives a fresh 302 redirect
  and unexpired JWT
- Add retry logic with backoff, explicit timeouts, and atomic temp-file
  writes so transient download failures do not break CI or leave partial
  binaries behind
- Log platform/binary name (e.g. tg5040/minui-list) for clearer CI logs

Fixes #3
2026-12-01 14:20:20 +00:00