Skip to content

Build wasm packs for every grammar - #177

Merged
zmaril merged 1 commit into
mainfrom
codex/wasm-all-grammars
Aug 22, 2026
Merged

Build wasm packs for every grammar#177
zmaril merged 1 commit into
mainfrom
codex/wasm-all-grammars

Conversation

@zmaril

@zmaril zmaril commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Closes #146.

What changed

  • use one shared grammar discovery command for native gates, WASM CI, default releases, and release rehearsal
  • build and upload a WASM pack for every current grammar rather than a three-language allowlist
  • parse each grammar's checked-in valid sweep fixture during direct pack checks
  • rehearse positive and negative parsing through both Python and Node consumers for all nine fetched packs
  • make build size reporting portable across GNU and BSD userlands

Verification

  • TREEBANK_WASM_PYTHON=... ./tools/wasm-pack/check.sh — all 9 packs reproducible, loadable, provenance/roles exact, valid fixture clean
  • TREEBANK_WASM_PYTHON=... ./tools/wasm-pack/test-release.sh — all 9 staged, fetched over HTTP, checksummed, parsed by both consumers, indexed, immutable on rerun
  • cargo test --workspace
  • actionlint .github/workflows/ci.yml
  • bash -n tools/wasm-pack/*.sh
  • shellcheck on changed shell entry points

@zmaril
zmaril merged commit 3c33caf into main Aug 22, 2026
32 checks passed
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.

CI matrix is missing bash and javascript; wasm matrix missing java and bash

1 participant