error: could not find wasm-opt, set the WASMOPT environment variable to override (macOS runner)
Integralist opened this issue ยท 8 comments
๐๐ป I've been trying to use this action but finding that I get the following error on the macOS runner:
error: could not find wasm-opt, set the WASMOPT environment variable to override
I then found this tinygo issue: tinygo-org/tinygo#2319 which suggests:
brew install binaryen wasm-tools
But looks like even though these two packages install fine, I still get the error.
Any ideas on how to resolve this issue?
Thanks!
UPDATE: I'm also seeing this error with the Windows runner.
Hey @Integralist, sorry for the late response. I see you have found a workaround, great! I would happily merge it upstream or try to fix it myself if you can send me a reproducible build that fails
Thanks for getting back to me ๐
I probably wouldn't take my changes verbatim as I hacked it together due to time constraints.
So maybe just use my implementation as inspiration.
same erro when use tinygo with scoop install tinygo
@ca1e if you're in a rush you can use https://github.com/Integralist/setup-tinygo
no worry! I just fixed it by run scoop install binaryen manually
Yeah I did the same back when I wasn't using a custom action. But I wanted an action because when I was manually setting up tinygo via scoop for Windows I was having a problem persisting the tinygo binary to another step that required it. I just couldn't get it added to the path so it would be persisted. But via the custom action it was much easier.
@ca1e @Integralist I've released v1.1.0 with Binaryen included. Thanks for the report and please do let me know if you run into anything else!