From af258f408f01f0ff48dcbb711c546ba1f34fe0b7 Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Thu, 18 Apr 2024 16:15:18 +0800 Subject: [PATCH] enhance: alwasy on ASAN Signed-off-by: Liang Huang --- .github/workflows/main.yaml | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e7425e91147d8..206f4f8abe4b1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -70,24 +70,24 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: 'Check Changed files' - id: changed-files-cpp - uses: tj-actions/changed-files@v41 - with: - since_last_remote_commit: 'true' - files: | - **/*.cpp - **/*.cc - **/*.c - **/*.h - **/*.hpp - **/*.CMakeLists.txt - **/conanfile.* - - name: 'Setup Use USE_ASAN' - if: steps.changed-files-cpp.outputs.any_changed == 'true' - run: | - echo "useasan=ON" >> $GITHUB_ENV - echo "Setup USE_ASAN to true since cpp file(s) changed" + # - name: 'Check Changed files' + # id: changed-files-cpp + # uses: tj-actions/changed-files@v41 + # with: + # since_last_remote_commit: 'true' + # files: | + # **/*.cpp + # **/*.cc + # **/*.c + # **/*.h + # **/*.hpp + # **/*.CMakeLists.txt + # **/conanfile.* + # - name: 'Setup Use USE_ASAN' + # if: steps.changed-files-cpp.outputs.any_changed == 'true' + # run: | + # echo "useasan=ON" >> $GITHUB_ENV + # echo "Setup USE_ASAN to true since cpp file(s) changed" - name: Download Caches uses: ./.github/actions/cache with: @@ -95,7 +95,7 @@ jobs: kind: 'cpp' - name: Build run: | - ./build/builder.sh /bin/bash -c "make USE_ASAN=${{env.useasan}} build-cpp-with-coverage" + ./build/builder.sh /bin/bash -c "make USE_ASAN=ON build-cpp-with-coverage" - run: | zip -r code.zip . -x "./.docker/*" -x "./cmake_build/thirdparty/**" -x ".git/**" - name: Archive code