diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d2fe43a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-and-test: + name: Build and test (Ubuntu) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # GoogleTest lives in test/googletest + submodules: recursive + + - name: Configure + run: cmake -B build -DMCP_BUILD_TESTS=ON + + - name: Build + run: cmake --build build --config Release + + - name: Test + run: ctest --test-dir build --output-on-failure