sanitize options updated. #116
Workflow file for this run
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: Makefile Continuous Integrations | |
| on: | |
| push: | |
| branches: [ master, dev-sanitizer ] | |
| paths: | |
| - '!**' | |
| - '**.h' | |
| - '**.cc' | |
| - Makefile | |
| - .github/workflows/ci.yml | |
| pull_request: | |
| branches: [ master, dev-sanitizer ] | |
| paths: | |
| - '!**' | |
| - '**.h' | |
| - '**.cc' | |
| - Makefile | |
| - .github/workflows/ci.yml | |
| jobs: | |
| unit-test: | |
| strategy: | |
| matrix: | |
| toolset: [gcc, clang] | |
| os: [ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Boost.Test | |
| run: sudo apt-get install --yes -qq libboost-test-dev | |
| - name: Environment variables | |
| run: make -r TOOLSET=${{ matrix.toolset }} env | |
| - name: Toolset versions | |
| run: make -r TOOLSET=${{ matrix.toolset }} versions | |
| - name: Build and run unit tests | |
| run: make -rj2 TOOLSET=${{ matrix.toolset }} example run_tests | |
| - name: Build and run unit tests with address sanitizer | |
| run: make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize2 run_tests | |
| - name: Build and run unit tests with thread sanitizer | |
| run: sudo sysctl vm.mmap_rnd_bits=30; make -rj2 TOOLSET=${{ matrix.toolset }} BUILD=sanitize run_tests |