Skip to content

Commit

Permalink
solve the asan ci's omp compile problem
Browse files Browse the repository at this point in the history
Signed-off-by: LHT129 <[email protected]>
  • Loading branch information
LHT129 committed Dec 17, 2024
1 parent 9d20570 commit c2e12e9
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/asan_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
container:
image: vsaglib/vsag:ubuntu
steps:
- uses: actions/checkout@v4
- name: Load Cache
uses: actions/[email protected]
with:
path: ./build/
key: build-${{ hashFiles('./CMakeLists.txt') }}-${{ hashFiles('./.circleci/fresh_ci_cache.commit') }}
# - uses: actions/checkout@v4
# - name: Load Cache
# uses: actions/[email protected]
# with:
# path: ./build/
# key: build-${{ hashFiles('./CMakeLists.txt') }}-${{ hashFiles('./.circleci/fresh_ci_cache.commit') }}
- name: Make Asan
run: make asan
run: |
export CC=`which gcc`
export CXX=`which g++`
# rm -rf /lib/x86_64-linux-gnu/libomp.so.5
make asan
- name: Save Test
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -60,6 +64,7 @@ jobs:
path: ./build/
- name: Do Asan Test In ${{ matrix.test_type }}
run: |
# rm -rf /lib/x86_64-linux-gnu/libomp.so.5
chmod +x ./build/tests/${{ matrix.test_type }}
./build/tests/${{ matrix.test_type }} -d yes ${UT_FILTER} -a --order rand --allow-running-no-tests -o log && cat log

Expand Down

0 comments on commit c2e12e9

Please sign in to comment.