File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ set -ex
3+
4+ install_nodejs () {
5+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
6+ \. " $HOME /.nvm/nvm.sh"
7+ nvm install 22
8+ }
9+
10+ install_emscripten () {
11+ git clone https://github.com/emscripten-core/emsdk.git
12+ pushd emsdk || return
13+ ./emsdk install 4.0.10
14+ ./emsdk activate 4.0.10
15+ source ./emsdk_env.sh
16+ popd || return
17+ }
18+
19+ install_nodejs
20+ install_emscripten
Original file line number Diff line number Diff line change @@ -734,3 +734,31 @@ jobs:
734734
735735 PYTHON_EXECUTABLE=python bash .ci/scripts/setup-openvino.sh
736736 PYTHON_EXECUTABLE=python bash .ci/scripts/test_openvino.sh
737+
738+ test-build-wasm-linux :
739+ name : test-build-wasm-linux
740+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
741+ permissions :
742+ id-token : write
743+ contents : read
744+ strategy :
745+ fail-fast : false
746+ with :
747+ runner : linux.2xlarge
748+ docker-image : executorch-ubuntu-22.04-clang12
749+ submodules : ' recursive'
750+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
751+ timeout : 90
752+ script : |
753+ # The generic Linux job chooses to use base env, not the one setup by the image
754+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
755+ conda activate "${CONDA_ENV}"
756+
757+ BUILD_TOOL="cmake"
758+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
759+
760+ # Install Node.js and Emscripten
761+ source .ci/scripts/setup-emscripten.sh
762+
763+ # Test selective build
764+ PYTHON_EXECUTABLE=python bash examples/wasm/test_build_wasm.sh
You can’t perform that action at this time.
0 commit comments