Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-PLACET committed Sep 5, 2024
1 parent df32b4b commit fc7c1df
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,42 @@ jobs:
# in asan we get an error from std::regex. ignore it.
run: |
echo "ASAN_OPTIONS=log_path=asan_log_:alloc_dealloc_mismatch=0:halt_on_error=0:handle_abort=0:exitcode=0" >> $GITHUB_ENV
echo "LEAK_OPTIONS=log_path=leak_log_" >> $GITHUB_ENV
- name: Run tests
working-directory: build
run: cmake --build . --config ${{matrix.config.name}} --target run_tests_with_junit_report
env:
# env:
# log_path is set to the path where ASAN will write the error report (seems ineffective)
# alloc_dealloc_mismatch is set to 0 to deactivate unwanted ASAN warnings.
# halt_on_error is set to 0 to avoid crashing the program after printing the first error report.
# handle_abort is set to 0 to deactivate calls are handled as crashes by ASAN.
# exitcode is set to 0 to avoid reporting the build as failed if ASAN detects an error.
ASAN_OPTIONS: log_path=asan_log_:alloc_dealloc_mismatch=0:halt_on_error=0:handle_abort=0:exitcode=0
LEAK_OPTIONS: log_path=leak_log_
# ASAN_OPTIONS: log_path=asan_log_:alloc_dealloc_mismatch=0:halt_on_error=0:handle_abort=0:exitcode=0
# LEAK_OPTIONS: log_path=leak_log_

- name: Upload test results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test_sparrow_lib_report_Linux_${{ matrix.sys.compiler }}_${{ matrix.sys.version }}_${{ matrix.sys.stdlib }}_${{ matrix.config.name }}_date-polyfill_${{ matrix.sys.date-polyfill}}
path: '**/test_sparrow_lib_report.xml'


- name: Upload ASAN log
if: always()
uses: actions/upload-artifact@v4
with:
name: asan-log-${{ matrix.sys.compiler }}-${{ matrix.sys.version }}-${{ matrix.config.name }}-${{ matrix.sys.date-polyfill }}
path: /**asan_log_*

- name: Upload LEAK log
if: always()
uses: actions/upload-artifact@v4
with:
name: leak-log-${{ matrix.sys.compiler }}-${{ matrix.sys.version }}-${{ matrix.config.name }}-${{ matrix.sys.date-polyfill }}
path: /**leak_log_*

- name: Build refactoring
if: matrix.sys.build_refactoring == 'ON'
working-directory: build
Expand All @@ -120,16 +135,3 @@ jobs:
working-directory: build
run: cmake --build . --config ${{matrix.config.name}} --target run_examples

- name: Upload ASAN log
if: always()
uses: actions/upload-artifact@v4
with:
name: asan-log-${{ matrix.sys.compiler }}-${{ matrix.sys.version }}-${{ matrix.config.name }}-${{ matrix.sys.date-polyfill }}
path: /**asan_log_*

- name: Upload LEAK log
if: always()
uses: actions/upload-artifact@v4
with:
name: leak-log-${{ matrix.sys.compiler }}-${{ matrix.sys.version }}-${{ matrix.config.name }}-${{ matrix.sys.date-polyfill }}
path: /**leak_log_*

0 comments on commit fc7c1df

Please sign in to comment.