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

Support to WebAssembly build #174

Merged
merged 1 commit into from
May 9, 2023

Conversation

ribeiromiranda
Copy link
Collaborator

What this PR does / why we need it:
To build and execute the webassembly in a browser, electron, etc

GOOS=js GOARCH=wasm $(GO)  build -o out.wasm ./source/

Special notes for reviewers:
In my tests, the only need to change was the file manipulation.

Signed-off-by: André R. de Miranda <andre@galgo.tech>
@ricardozanini ricardozanini requested a review from spolti May 8, 2023 13:40
@spolti
Copy link
Member

spolti commented May 8, 2023

Maybe we can have a issue describing better why it is needed and maybe a few instructions about how to use it?

@ricardozanini
Copy link
Member

@spolti as I understood, this is needed for WebAssembly use cases.

@spolti
Copy link
Member

spolti commented May 8, 2023

@spolti as I understood, this is needed for WebAssembly use cases.

Yes, but it would be nice to have a documented use case.

@ricardozanini
Copy link
Member

Not sure what you mean by documented use case, but I'm honestly curious to know more about @ribeiromiranda 's use case for the SDK and WebAssembly :)

@ribeiromiranda
Copy link
Collaborator Author

I'm developing a platform called fermions for developers to design, build, test CloudEvents and Serverless workflow. To build a cross-platform desktop app, I'm using electron.

The fermions-workflow (multiple platforms) use this sdk-go, builded with WebAssembly it's possible run the workflows in electron or other web browser.

@ricardozanini ricardozanini merged commit a8f9da8 into serverlessworkflow:main May 9, 2023
7 checks passed
@ribeiromiranda ribeiromiranda deleted the build-wasm branch May 15, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants