Skip to content

feat(ci): add Nx, Docker Buildx, and pnpm caching for self-hosted runners#7701

Merged
h0lybyte merged 1 commit intodevfrom
trunk/self-hosted-enhance-1772837170
Mar 7, 2026
Merged

feat(ci): add Nx, Docker Buildx, and pnpm caching for self-hosted runners#7701
h0lybyte merged 1 commit intodevfrom
trunk/self-hosted-enhance-1772837170

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 7, 2026

Summary

  • Add Nx task cache via actions/cache@v5 — keyed on lockfile + SHA so Nx build results persist without NX Cloud
  • Add Docker Buildx layer cache via actions/cache@v5 with rotate-on-save pattern (prevents unbounded growth)
  • Expose BUILDX_CACHE_DIR env var so callers can use --cache-from type=local,src=$BUILDX_CACHE_DIR
  • Complements existing pnpm store and cargo caches already in the workflow

Follow-up to PR #7685 — this commit was pushed after that PR was merged and was missed.

Test plan

  • Verify YAML syntax with actionlint
  • Confirm Nx cache hit/miss on consecutive self-hosted runs
  • Confirm Docker Buildx cache restore on consecutive builds

…ners

- Add Nx task cache via actions/cache (keyed on lockfile + SHA)
- Add Docker Buildx local layer cache with rotate-on-save pattern
- Expose BUILDX_CACHE_DIR env var for callers to use in build commands
- Complements existing pnpm store and cargo caches
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 03fb228 into dev Mar 7, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/self-hosted-enhance-1772837170 branch March 7, 2026 00:34
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