Merge pull request #12 from FFMG/feature/python #65
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 CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/tests/build -S ${{github.workspace}}/tests -G "Visual Studio 17 2022" -A x64 | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/tests/build --config Release | |
| - name: Run Tests | |
| working-directory: ${{github.workspace}}/tests/build | |
| run: ctest -C Release --output-on-failure | |
| build-and-test-unix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/tests/build -S ${{github.workspace}}/tests | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/tests/build --config Release | |
| - name: Run Tests | |
| working-directory: ${{github.workspace}}/tests/build | |
| run: ctest -C Release --output-on-failure | |
| build-and-test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/tests/build -S ${{github.workspace}}/tests | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/tests/build --config Release | |
| - name: Run Tests | |
| working-directory: ${{github.workspace}}/tests/build | |
| run: ctest -C Release --output-on-failure |