File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : sanitizers trial
2+ on :
3+ push :
4+ branches : [scratch/cppia-free-sanitizers]
5+
6+ jobs :
7+ check-sanitizers :
8+ name : Check with ${{ matrix.name }}
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ include :
13+ - name : UBSan
14+ sanitize : undefined
15+ - name : ASan
16+ sanitize : address
17+ - name : TSan
18+ sanitize : thread
19+ runs-on : ubuntu-latest
20+ env :
21+ UBSAN_OPTIONS : halt_on_error=1:print_stacktrace=1:suppressions=${{ github.workspace }}/test/sanitizers/ubsan.supp:log_path=/tmp/sanitizer/report
22+ ASAN_OPTIONS : detect_leaks=0:detect_stack_use_after_return=0:log_path=/tmp/sanitizer/report
23+ TSAN_OPTIONS : halt_on_error=0:second_deadlock_stack=1:suppressions=${{ github.workspace }}/test/sanitizers/tsan.supp:log_path=/tmp/sanitizer/report
24+ steps :
25+ - name : checkout
26+ uses : actions/checkout@v7
27+
28+ - name : setup
29+ id : setup
30+ uses : ./.github/workflows/setup
31+ with :
32+ haxe : 4.3.7
33+
34+ - name : Run the cppia module tests
35+ working-directory : test/regression
36+ shell : bash
37+ run : |
38+ failed=""
39+ for test in CppiaModuleFree CppiaModuleRelease; do
40+ if ! { haxe -C $test build.hxml -D HXCPP_M64 -D HXCPP_SANITIZE=${{ matrix.sanitize }} && $test/bin/Main > $test/out.txt && diff <(tr -d '\r' < $test/stdout.txt) <(tr -d '\r' < $test/out.txt); }; then
41+ failed="$failed $test"
42+ fi
43+ done
44+ [ -z "$failed" ] || { echo "Failed:$failed"; exit 1; }
45+
46+ - name : Show the sanitizer reports
47+ if : ${{ !cancelled() }}
48+ run : cat /tmp/sanitizer/report.* 2>/dev/null || echo "No sanitizer reports"
You can’t perform that action at this time.
0 commit comments