Skip to content

Commit

Permalink
Update cmake commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Umesh-k26 committed May 13, 2024
1 parent aadc555 commit 8a6365d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
activate-environment: mlbridge
environment-file: mlbridge.yml
- name: Install other dependencies and build
run: bash .github/workflows/mlbridge_build.sh release
run: bash .github/workflows/mlbridge_build.sh Release
- name: Setup Conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/mlbridge_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ pushd cmake/build
cmake -DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
-DABSL_PROPAGATE_CXX_STD=OFF \
-DCMAKE_CXX_STANDARD=17 \
-G Ninja \
../..
make -j
make install
ninja
ninja install
popd

# Setup ONNXRuntime
Expand All @@ -35,7 +38,7 @@ if [[ -z "$BUILD" ]]; then
fi

cmake \
-G "Unix Makefiles" \
-G Ninja \
-S $REPO_DIR \
-B $REPO_DIR/build_${BUILD,,} \
-DONNXRUNTIME_ROOTDIR=$HOME/onnxruntime-linux-x64-1.16.3 \
Expand All @@ -46,4 +49,5 @@ cmake \
-DPYTHON_UTILITIES_DIRECTORY=$REPO_DIR/test \
-DMLBRIDGE_ENABLE_TEST=ON

make -j -C $REPO_DIR/build_${BUILD,,} install
cd $REPO_DIR/build_${BUILD,,}
ninja install

0 comments on commit 8a6365d

Please sign in to comment.