From 0a5d8cd7ee4f6a733f2a101e08db07f8ba4995ec Mon Sep 17 00:00:00 2001 From: erki Date: Mon, 15 May 2023 23:20:23 +0300 Subject: [PATCH] Time to test --- .gitea/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..0c3a60b --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI & Unit Tests +run-name: CI & Unit Tests +on: [push, pull_request] + +jobs: + Unit-Tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Prepare environment + run: | + sudo apt install -y --no-install-recommends build-essential cmake ninja-build python3 python3-pip + pip3 install --user --upgrade conan==1.42.1 + conan profile new default --detect + conan profile update settings.compiler.libcxx=libstdc++11 default + + - name: Configure build + working-directory: ${{runner.workspace}} + run: | + cmake -Bbuild -H$GITHUB_WORKSPACE \ + -G"Ninja" \ + -DCMAKE_BUILD_TYPE=Release \ + -DWITH_TESTS=ON + + - name: Build tests + lib + working-directory: ${{runner.workspace}}/build + run: ninja + + - name: Run tests + working-directory: ${{runner.workspace}}/build + run: ctest . --output-on-failure