Fixed unit test warnings and runtime warnings in other areas #58
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-and-test: | |
| name: Build and Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure CMake | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build --config Debug | |
| - name: Check Bindings (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| ./build/src/tools/gen_bindings include/concordia.h go > go/consts.go.tmp | |
| diff go/consts.go go/consts.go.tmp || (echo "go/consts.go is out of date. Please run gen_bindings." && exit 1) | |
| rm go/consts.go.tmp | |
| - name: Run Tests (Unix) | |
| if: runner.os != 'Windows' | |
| run: ./build/tests/test_runner | |
| - name: Run Tests (Windows) | |
| if: runner.os == 'Windows' | |
| run: .\build\tests\Debug\test_runner.exe |