Merge pull request #147 from argtable/build-add-asan-ci-workflow #76
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: MSVC Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build with Visual Studio C++ | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| configuration: [Release, Debug] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure with CMake (Visual Studio generator) | |
| run: cmake -B build -G "Visual Studio 17 2022" -A x64 | |
| - name: Build with MSVC | |
| run: cmake --build build --config ${{ matrix.configuration }} | |
| - name: Run tests (fail if any test fails) | |
| working-directory: build | |
| run: ctest --output-on-failure -C ${{ matrix.configuration }} |