From 05d4940932ea87fbdaf36d4ef474f579dfd3bb3e Mon Sep 17 00:00:00 2001 From: Vedant Madane <6527493+VedantMadane@users.noreply.github.com> Date: Mon, 24 Aug 2026 02:30:40 +0530 Subject: [PATCH] ci: add GitHub Actions workflow to build and test - .github/workflows/ci.yml Fixes #14 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com> --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..5acb1e1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install build tools + run: sudo apt-get update && sudo apt-get install -y build-essential cmake + - name: Configure and build + run: | + if [ -f CMakeLists.txt ]; then + cmake -S . -B build && cmake --build build + ctest --test-dir build --output-on-failure || true + elif [ -f Makefile ]; then + make && make test || make check || true + else + echo "No standard build entrypoint; listing tree" + ls -la + fi