Add initial project structure with CMake configuration, Clang format … #4
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: C++ Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| jobs: | |
| cpp-tests: | |
| name: C++ tests (msvc) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup CMake >= 3.30 | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| with: | |
| cmake-version: "3.31.x" | |
| - name: Configure CMake (Release) | |
| run: | | |
| cmake -S . -B build -G "Visual Studio 17 2022" -A x64 | |
| - name: Build (Release) | |
| run: | | |
| cmake --build build --config Release | |
| - name: Run C++ unit/integration tests | |
| run: | | |
| ctest --test-dir build -C Release --output-on-failure | |