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

feat: allow custom weval bin #522

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vados-cosmonic
Copy link
Contributor

@vados-cosmonic vados-cosmonic commented Nov 8, 2024

This commit enables using a custom weval binary from jco (see also bytecodealliance/ComponentizeJS#156) -- the idea is to hopefully download the weval binary separately from the actual test (i.e. where jco componentize gets run), and be able to use it w/ jco specifically via arg & env var from CI.

Example failure

This commit enables specifying a custom `weval` binary to use when
performing AOT.

Signed-off-by: Victor Adossi <[email protected]>
.nvmrc Outdated Show resolved Hide resolved
@@ -34,6 +34,7 @@ program.command('componentize')
.requiredOption('-w, --wit <path>', 'WIT path to build with')
.option('-n, --world-name <name>', 'WIT world to build')
.option('--aot', 'Enable Weval AOT compilation of JS')
.option('--weval-bin <path>', 'Specify a custom weval binary to use')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would have expected we'd need to set this somewhere in this PR to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes -- this PR actually isn't quite ready yet -- I need to make sure that installing weval with https://github.com/jaxxstorm/action-install-gh-release actually works. Will move this to draft while I work on the CI bits.

The place this has to go is in the CLI test where we call componentize -- just haven't added it yet!

@vados-cosmonic vados-cosmonic marked this pull request as draft November 8, 2024 18:18
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.

2 participants