From 48580d02786f8d7d03c984ce5f135c6f6db41e68 Mon Sep 17 00:00:00 2001 From: Nick Koirala Date: Tue, 11 Nov 2025 17:52:41 +1300 Subject: [PATCH] chore: gitea action --- .gitea/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..b55c2c7 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + - push + - pull_request + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + build-essential cmake git pkg-config \ + libx11-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev \ + libgl1-mesa-dev libasound2-dev libpulse-dev libudev-dev libpng-dev + + - name: Configure (CMake) + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + + - name: Build unit tests + run: cmake --build build --target unit_tests -j $(nproc) + + - name: Run tests + run: | + cd build + ctest --output-on-failure -j $(nproc)