Build pattern
Develop in any language and ship tested native and WebAssembly binaries together.
Build me a release workflow that produces a native executable and a WebAssembly binary from the same source. Run the behavior tests on both and put the passing artifacts in one versioned release folder.
See: https://openhello.fyi/library/build-patternHow it’s used
Use this pattern when a HELLO project needs a native production executable and a Wasm build with the same feature behavior.
- Develop and test in Go, Python, JavaScript, or the language that suits the project.
- Update the maintained C or Rust implementation to match the tested behavior.
- Build the native executable and the Wasm binary from that release source.
- Run shared behavior tests and exercise each compiled artifact in its intended runtime.
- Place the passing binaries together in the release folder for that version. Deploy those exact files.
Example release folder
releases/<version>/
hello-linux-amd64
hello.wasm
manifest.jsonWhere it’s used
0 peers
Project examples
- JMPKit
- Develops the INPAK listener and HELLO command engine in Python. Its production plan uses the same serial tests for Python and Rust, including the greeting and PING/PONG.
- Hello Router
- Runs its Go prototype in a Linux VM. The smoke test checks a WireGuard handshake, published routes, and an XMIR PING. Its Rust release plan calls for the same checks on the compiled Linux server.