build: add asan memory check ci workflow #41
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: GCC Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build with GCC (${{ matrix.configuration }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| configuration: [Release, Debug] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake gcc make | |
| - name: Configure with CMake (GCC) | |
| run: | | |
| cmake -B build/${{ matrix.configuration }} \ | |
| -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} \ | |
| -DCMAKE_C_COMPILER=gcc | |
| - name: Build with GCC | |
| run: cmake --build build/${{ matrix.configuration }} -- -j | |
| - name: Run tests (fail if any test fails) | |
| working-directory: build/${{ matrix.configuration }} | |
| run: ctest --output-on-failure |