Wasm Language Runtimes provides popular language runtimes (Ruby, Python, …) precompiled to WebAssembly that are tested for compatibility and kept up to date when new versions of upstream languages are released
Apache License 2.0
327
stars
27
forks
source link
WLR simplified build scripts, actions and structure #114
As we bumped WASI SDK and the major runtimes to the latest versions there was a lot of copy-pasting and dealing with mind boggling things in the build scripts.
This PR aims to reduce this for future changes.
All target folders follow the v${MAJOR}.${MINOR}.${BUILD} format now, as the actual source tag is described in wlr-env-repo.sh file. (for example php/php-8.2.0 would be moved to php/v8.2.0). This immensely simplifies GH actions.
All build scripts prepare the necessary assets into the build-output root now (instead of complex, highly customizable GH Actions doing this for different flavors)
GH actions are simplified to dealing with *.{gz,wasm,txt} files instead of complex names. Reusable stuff is extracted in callable workflows
All flavor targets are handled by GNU Make (instead of folders with symlinks or copy pasted scripts). Note that all wlr-build.sh scripts now have to consider the WLR_BUILD_FLAVOR variable if they want to handle different flavors.
Developer notes were moved from README.md to docs/developers.md and updated
Note: There is more that could be generalized/simplified but I had to draw the line. The change is already way too big and time consuming for the value it brings.
Here is what the release builds for the major runtimes look now
As we bumped WASI SDK and the major runtimes to the latest versions there was a lot of copy-pasting and dealing with mind boggling things in the build scripts.
This PR aims to reduce this for future changes.
v${MAJOR}.${MINOR}.${BUILD}
format now, as the actual source tag is described inwlr-env-repo.sh
file. (for examplephp/php-8.2.0
would be moved tophp/v8.2.0
). This immensely simplifies GH actions.build-output
root now (instead of complex, highly customizable GH Actions doing this for different flavors)wlr-build.sh
scripts now have to consider the WLR_BUILD_FLAVOR variable if they want to handle different flavors.Note: There is more that could be generalized/simplified but I had to draw the line. The change is already way too big and time consuming for the value it brings.
Here is what the release builds for the major runtimes look now
And here are samples for the published releases: