Skip to content

Commit

Permalink
enhance: alwasy on ASAN
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <[email protected]>
  • Loading branch information
yellow-shine committed Apr 18, 2024
1 parent 66fae53 commit af258f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,32 +70,32 @@ 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:
os: 'ubuntu20.04'
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
Expand Down

0 comments on commit af258f4

Please sign in to comment.