From e66a454aadb5958a2afa761fa32bf172d393cd12 Mon Sep 17 00:00:00 2001 From: Andrea Ferrario Date: Fri, 23 May 2025 23:37:07 +0200 Subject: [PATCH] CI: add pipeline --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..48665b0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Build & Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y cmake ninja-build g++ libgtest-dev + + - name: Configure CMake + run: cmake -S . -B build -GNinja -DENABLE_TESTING=ON + + - name: Build + run: cmake --build build + + - name: Run tests + run: ctest --test-dir build --output-on-failure