Run Clang AddressSanitizer #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Clang AddressSanitizer | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '13 20 * * SUN' | |
| jobs: | |
| addresssanitizer: | |
| name: Clang AddressSanitizer | |
| runs-on: ubuntu-latest | |
| env: | |
| ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2 | |
| CC: clang | |
| CXX: clang++ | |
| CFLAGS: -fsanitize=address -Wall -Wextra -Wpedantic -Wformat=2 -Walloca -Wvla -Wimplicit-fallthrough -Wcast-qual -Wconversion -Wshadow -Wundef -Wstrict-prototypes -Wswitch-enum -fstack-protector -D_FORTIFY_SOURCE=2 | |
| CXXFLAGS: -fsanitize=address | |
| LDFLAGS: -fsanitize=address | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - run: sudo apt install clang libipc-run3-perl | |
| - run: ./bootstrap | |
| - run: ./configure | |
| - run: make | |
| - run: make check |