Commit da2456a
committed
feat(ci): reuse cached binaries from build-socketbin.yml
Update publish-socketbin.yml to restore and reuse cached smol binaries from
build-socketbin.yml workflow. This eliminates redundant binary compilation
when publishing to npm.
Cache integration:
- Restores smol binary using same cache key as build-socketbin.yml
- Matches hash algorithm: build/patches + node-smol-builder + scripts
- Key format: node-smol-{platform}-{arch}-{hash}
Workflow coordination:
- build-socketbin.yml creates cache
- publish-socketbin.yml restores from same cache
- Cache shared across workflows in monorepo
Benefits:
- Eliminates redundant 2-hour binary builds on publish
- Reuses pre-built binaries from build-socketbin.yml
- Faster publish workflow (~10 minutes vs ~2 hours)
- Consistent binaries between testing and publishing
Fallback behavior:
- If cache miss, builds from source as before
- No behavior change for existing publish process
- Only adds optimization when cache available1 parent e40e2e6 commit da2456a
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
0 commit comments