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