From 455a836d579cab23d616124023a49183f19c803a Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Mon, 9 Dec 2024 15:29:07 +0100 Subject: [PATCH] Library CI --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..237ebda --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: C++ CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Configure CMake + run: cmake -B build + + - name: Build + run: cmake --build build + + - name: Test + working-directory: build + run: ctest --output-on-failure