Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Rename directory build to scripts (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrain authored Jan 21, 2022
1 parent 71eb986 commit f77cf49
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v2
- name: Install Dependency
run: |
./build/install_deps.sh
./scripts/install_deps.sh
- name: Build
env:
ARTIFACT_NAME: ${{ env.RELEASE_NAME }}-${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ut.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v2
- name: Install Dependency
run: |
./build/install_deps.sh
./scripts/install_deps.sh
- name: Run Unittest
run: |
./build.sh -t Release -u && cmake_build/unittest/test_knowhere
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Here's a list of verified OS types where Knowhere can successfully build and run
#### Install Dependencies

```bash
$ ./build/install_deps.sh
$ ./scripts/install_deps.sh
```

#### Build From Source Code
Expand Down
33 changes: 12 additions & 21 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,22 @@ SUPPORT_GPU="OFF" #defaults to CPU version
while getopts "p:t:cglruzh" arg; do
case $arg in
c)
BUILD_COVERAGE="ON"
;;
BUILD_COVERAGE="ON" ;;
g)
SUPPORT_GPU="ON"
;;
SUPPORT_GPU="ON" ;;
l)
RUN_CPPLINT="ON"
;;
RUN_CPPLINT="ON" ;;
p)
INSTALL_PREFIX=$OPTARG
;;
INSTALL_PREFIX=$OPTARG ;;
r)
MAKE_CLEAN="ON"
;;
MAKE_CLEAN="ON" ;;
t)
BUILD_TYPE=$OPTARG # BUILD_TYPE
;;
BUILD_TYPE=$OPTARG ;;
u)
echo "Build and run unittest cases" ;
BUILD_UNITTEST="ON";
;;
echo "Build and run unittest cases"
BUILD_UNITTEST="ON" ;;
z)
SUPPORT_PROFILING="ON"
;;
SUPPORT_PROFILING="ON" ;;
h) # help
echo "
Expand All @@ -68,12 +60,10 @@ parameter:
usage:
./build.sh -t \${BUILD_TYPE} [-c] [-g] [-l] [-r] [-u] [-z]
"
exit 0
;;
exit 0 ;;
?)
echo "unknown argument"
exit 1
;;
exit 1 ;;
esac
done

Expand All @@ -95,6 +85,7 @@ cd ${BUILD_OUTPUT_DIR}
CMAKE_CMD="cmake -DBUILD_UNIT_TEST=${BUILD_UNITTEST} \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DBUILD_COVERAGE=${BUILD_COVERAGE} \
-DCMAKE_CUDA_COMPILER=${CUDA_COMPILER} \
-DMILVUS_ENABLE_PROFILING=${SUPPORT_PROFILING} \
-DKNOWHERE_GPU_VERSION=${SUPPORT_GPU} \
Expand Down
File renamed without changes.

0 comments on commit f77cf49

Please sign in to comment.