Skip to content

outline of the json loader #16

outline of the json loader

outline of the json loader #16

Workflow file for this run

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