From 1e8920a15014f59042a8cd8b877fc0512ce5dae7 Mon Sep 17 00:00:00 2001 From: Bennu Date: Mon, 20 Feb 2023 18:42:22 +0800 Subject: [PATCH] [skip e2e] Modify build for release workflow (#691) Signed-off-by: Bennu-Li --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 96c086f4c..639880488 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,8 +32,9 @@ jobs: env: ARTIFACT_NAME: ${{ env.RELEASE_NAME }}-${{ matrix.os }} run: | - ./build.sh -t Release -p tmp - mkdir -p artifacts && mv cmake_build/tmp artifacts/${{ env.ARTIFACT_NAME }} + mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_UT=OFF -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 + mkdir -p artifacts && mv build artifacts/${{ env.ARTIFACT_NAME }} rm -rf artifacts/${{ env.ARTIFACT_NAME }}/share rm -rf artifacts/${{ env.ARTIFACT_NAME }}/lib/pkgconfig cd artifacts && tar -zcvf ${{ env.ARTIFACT_NAME }}.tar.gz ${{ env.ARTIFACT_NAME }}/