Skip to content

Cache SDKs and deduplicate build assets across matrix#9

Merged
HudsonGraeme merged 2 commits intodevfrom
ci/cache-build-assets
Mar 16, 2026
Merged

Cache SDKs and deduplicate build assets across matrix#9
HudsonGraeme merged 2 commits intodevfrom
ci/cache-build-assets

Conversation

@HudsonGraeme
Copy link
Copy Markdown
Owner

Summary

  • Extracts a prepare job that runs Node.js setup, pnpm install, and pnpm build once, sharing dist/ via artifact to all 8 matrix jobs
  • Caches the OpenWrt SDKs (pinned to 24.10.5, ~200MB each) between workflow runs so subsequent builds skip the download + extract
  • Computes version once in the prepare job and passes it as an output, eliminating duplicated version logic across steps

Test plan

  • Add run-build label to trigger a PR build and verify the prepare job completes before matrix jobs start
  • Verify SDK cache is populated on first run and hit on subsequent runs
  • Verify packages are still built correctly for all architectures

Depends on #8

Extract a prepare job that builds dist/ once and shares it via artifact
instead of running Node.js setup + pnpm install + build in all 8 matrix
jobs. Cache the OpenWrt SDKs (pinned to 24.10.5) so subsequent runs
skip the ~200MB download per architecture. Version is computed once and
passed as a job output.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 16, 2026

Warning

Rate limit exceeded

@HudsonGraeme has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 0 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4b92fc3e-e0e2-4bfc-a200-4e59daef4974

📥 Commits

Reviewing files that changed from the base of the PR and between 6db0967 and 144116e.

📒 Files selected for processing (1)
  • .github/workflows/build-release.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/cache-build-assets
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

CONFIG_USE_APK is BROKEN in the 24.10 SDK. Use separate SDK versions:
24.10.5 for ipk (opkg devices), 25.12.0 for apk (apk devices).
Both matrices run in parallel after the shared prepare job.
@HudsonGraeme HudsonGraeme merged commit 0529ed3 into dev Mar 16, 2026
4 checks passed
@HudsonGraeme HudsonGraeme deleted the ci/cache-build-assets branch March 16, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant