[Build] Very basic GitHub Actions workflow for Emscripten(WASM) build with vcpkg #23561
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
emscripten.yml
which runs WebAssembly build with GitHub ActionsThis is the minimal work based on azure-pipelines/templates/linux-wasm-ci.yml
--use_vcpkg
and--build_wasm
wasm32-emscripten.cmake
will be used.VCPKG_CHAINLOAD_TOOLCHAIN_FILE
, we can't useVCPKG_CXX_FLAGS
orVCPKG_LINKER_FLAGS
to customize build details of the external libraries in vcpkg.jsonEMCC_CFLAGS
to applyemcc
compiler options globallyWithout
EMCC_CFLAGS
customization, we will get the linkage errors.Warning
Currently,
wasm32-emscripten
fails the unit test phase of build.py, with "out of memory" exception.I guess it's kind of
onnxruntime_ENABLE_WEBASSEMBLY_MEMORY64
issue.Motivation and Context
I don't have a WASM experience. Feel free to advice :D
References