Repository navigation
Add GitHub Actions CI for Ubuntu build and tests - #64
Merged
Merged
Conversation
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 <hkr04@users.noreply.github.com>
hkr04
marked this pull request as ready for review
October 20, 2026 11:44
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/ci.yml, the first GitHub Actions workflow in this repo. It runs on every push and pull request targetingmain.The
ubuntu-latestjob:actions/checkout@v4andsubmodules: recursive(GoogleTest undertest/googletest).cmake -B build -DMCP_BUILD_TESTS=ON.cmake --build build --config Release.ctest --test-dir build --output-on-failure.SSL (
-DMCP_SSL=ON) and a macOS job are left out of this first version. Both can be added later as a matrix.How to see results
Open the Actions tab on GitHub and select the CI workflow. Each push or pull request to
maingets a run; this pull request should get one as soon as the workflow file is on the branch. Inside the run, the Build and test (Ubuntu) job has separate logs for configure, build, and test. Ifmcp_testsfails, CTest prints the test output because of--output-on-failure.Verification
The same configure, Release build, and CTest commands were run locally before opening this PR. CTest reported
mcp_testspassed (1/1), and the test binary reported 22 tests passed.Test plan
cmake -B build -DMCP_BUILD_TESTS=ONcmake --build build --config Releasectest --test-dir build --output-on-failure