Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add kludges to build for WASI #346

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

srenatus
Copy link
Member

Build with

GOOS=wasip1 GOARCH=wasm go build -o regal.wasm .

Run with wasmtime regal.wasm and the like:

$ curl https://wasmtime.dev/install.sh -sSf | bash
# ...
$ wasmtime --version
wasmtime-cli 13.0.0
$ wasmtime --dir $(pwd) regal -- lint bundle
90 files linted. No violations found.

❓ I didn't get this to work on webassembly.sh 🤷

Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Could you add the "docs" from the PR description to some "Wasm (Experimental)" section in the development.md docs?

@srenatus srenatus force-pushed the sr/wasi branch 3 times, most recently from bff1cb2 to 059e2ce Compare September 25, 2023 12:40
Signed-off-by: Stephan Renatus <stephan@styra.com>
@anderseknert anderseknert merged commit 9063cf0 into StyraInc:main Sep 25, 2023
1 check passed
@srenatus srenatus deleted the sr/wasi branch September 25, 2023 13:05
@srenatus srenatus restored the sr/wasi branch September 25, 2023 13:05
@srenatus srenatus deleted the sr/wasi branch September 25, 2023 13:05
@srenatus srenatus mentioned this pull request Oct 12, 2023
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.

None yet

2 participants