From fbb8f79d6a56aa195e549c1c1e28a7e159065d8a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 19 Oct 2026 09:45:16 +0000 Subject: [PATCH] Add GitHub Actions CI for Ubuntu build and tests Run the README cmake configure, Release build, and CTest steps on push and pull requests to main so regressions show up in Actions. Co-authored-by: Zihong Zhang --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml 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