Skip to content

Commit

Permalink
make ci analyzer (clang-tidy) faster (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Yusheng.Ma <[email protected]>
  • Loading branch information
Presburger authored Oct 12, 2023
1 parent 12db789 commit 0e67c78
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ jobs:
run: |
sudo apt update && sudo apt install -y cmake g++ gcc libopenblas-dev libaio-dev libcurl4-openssl-dev libevent-dev clang-tidy python3-pip && \
pip3 install conan==1.58.0 && conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local
- name: Cache conan
id: cache-conan
uses: actions/cache@v3
with:
path: ~/.conan
key: ${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
- name: Build & Analyzer
run: |
mkdir build && cd build && conan install .. --build=missing -o with_ut=True -o with_diskann=True -o with_asan=True && conan build .. \
&& cd .. && find src -type f | grep -E "\.cc$" | xargs /usr/lib/llvm-10/share/clang/run-clang-tidy.py -quiet -p=./build/Release
mkdir build && cd build && conan install .. --build=missing -o with_ut=True -o with_diskann=True && cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_DISKANN=ON \
&& cd .. && find src -type f | grep -E "\.cc$" | xargs /usr/lib/llvm-10/share/clang/run-clang-tidy.py -quiet -p=./build

0 comments on commit 0e67c78

Please sign in to comment.