Commit bdd8017
ci: pin binaryen / wasm-opt for deterministic WASM builds (SQLR-58) (#138)
`jetli/wasm-pack-action` and wasm-pack's curl-installer both let wasm-pack
pick whatever binaryen its internal cache happens to hold. When that
copy predates multi-table WASM support, wasm-opt rejects rustc output
with "Only 1 table definition allowed in MVP" — a flake whose
hit/miss depended on runner image cache state (first surfaced on
PR #135; rerun passed). Pin binaryen to version_122 in both the
ci.yml `wasm-build` and release.yml `publish-wasm` jobs by
downloading the official tarball before wasm-pack runs and
prepending it to PATH. wasm-pack auto-detects wasm-opt on PATH, so
no further wiring needed. Bump procedure documented in
docs/release-plan.md so future-me knows to update both workflows
in lockstep.
Verified locally on darwin-arm64: `wasm-pack build --target web
--release` reports `[INFO]: found wasm-opt at ".../binaryen-version_122/bin/wasm-opt"`
and builds a 2.14 MiB bundle (in line with prior sizes).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b574546 commit bdd8017
3 files changed
Lines changed: 114 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
302 | 311 | | |
303 | 312 | | |
304 | 313 | | |
| |||
313 | 322 | | |
314 | 323 | | |
315 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
316 | 338 | | |
317 | 339 | | |
318 | 340 | | |
319 | 341 | | |
320 | 342 | | |
321 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
322 | 348 | | |
323 | 349 | | |
324 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1192 | 1200 | | |
1193 | 1201 | | |
1194 | 1202 | | |
| |||
1207 | 1215 | | |
1208 | 1216 | | |
1209 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1210 | 1232 | | |
1211 | 1233 | | |
1212 | 1234 | | |
| |||
1239 | 1261 | | |
1240 | 1262 | | |
1241 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1242 | 1267 | | |
1243 | 1268 | | |
1244 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
288 | 349 | | |
289 | 350 | | |
290 | 351 | | |
| |||
0 commit comments