From 2ca64fae415c143bde99367de7acc49063c7465a Mon Sep 17 00:00:00 2001 From: arthur Date: Wed, 24 Sep 2025 08:32:22 +0200 Subject: [PATCH] add build.yml --- .gitea/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..ba1335a --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,31 @@ +name: CMake Build and Deploy + +on: + push: + branches: ["main"] + pull_request: + +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 build-essential + + - name: Build project + run: cmake --build build -- -j$(nproc) + + - name: Run tests + run: ctest --test-dir build || true + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: beluga + path: build/beluga