Skip to content

Commit ddf2e8a

Browse files
authored
Build for WASM
1 parent 9084c70 commit ddf2e8a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.circleci/config.yml

+36
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,44 @@ jobs:
6666
- store_artifacts:
6767
path: /Users/distiller/project/onnxruntime_xcframework.zip
6868
destination: onnxruntime_xcframework.zip
69+
70+
build-and-test-wasm:
71+
macos:
72+
xcode: << pipeline.parameters.xcode-version >>
73+
resource_class: << pipeline.parameters.macos-resource-class >>
74+
75+
shell: /bin/bash --login -o pipefail
76+
77+
steps:
78+
- run:
79+
name: check Xcode version and Python 3
80+
command: |
81+
/usr/bin/xcodebuild -version
82+
python3 --version
83+
python --version
84+
which python3
85+
echo $CIRCLE_WORKING_DIRECTORY
86+
- checkout
87+
- run:
88+
name: create directory to store the library
89+
command: |
90+
mkdir -p $HOME/onnxlibrary/macabi_release_v20230327_2320
91+
- run:
92+
name: install tools for build
93+
command: |
94+
brew install cmake
95+
pip install -r ${CIRCLE_WORKING_DIRECTORY}/requirements-dev.txt
96+
- run:
97+
name: build static wasm library
98+
command: |
99+
export PYTHONPATH=${CIRCLE_WORKING_DIRECTORY}/tools/python:$PYTHONPATH
100+
bash ${CIRCLE_WORKING_DIRECTORY}/build.sh --build_wasm_static_lib --enable_wasm_simd --enable_wasm_threads
101+
69102
workflows:
70103
version: 2
71104
build-and-test-xcframework:
72105
jobs:
73106
- build-and-test-xcframework
107+
build-and-test-wasm:
108+
jobs:
109+
- build-and-test-wasm

0 commit comments

Comments
 (0)