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