outline of the json loader #16
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++ Backend Tests | |
| on: | |
| push: | |
| paths: | |
| - 'cpp-backend-new/**' | |
| - '.github/workflows/cpp-tests.yml' | |
| branches: [ "main" ] | |
| pull_request: | |
| paths: | |
| - 'cpp-backend-new/**' | |
| - '.github/workflows/cpp-tests.yml' | |
| branches: [ "main" ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: cpp-backend-new | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install CMake, GTest, and nlohmann-json | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake libgtest-dev nlohmann-json3-dev | |
| cd /usr/src/gtest | |
| sudo cmake CMakeLists.txt | |
| sudo make | |
| sudo cp lib/*.a /usr/lib | |
| - name: Configure CMake | |
| run: cmake -B build -S . -DCMAKE_CXX_STANDARD=20 | |
| - name: Build | |
| run: cmake --build build | |
| - name: Run Tests | |
| run: | | |
| cd build | |
| ctest --output-on-failure |