From 3ff86f5670617842f028b4e635f35f7e512ef062 Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Wed, 29 Jul 2026 13:08:20 +0200 Subject: [PATCH] adding CI --- .gitea/workflows/action.yaml | 21 +++++++++++++++++++++ CMakeLists.txt | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/action.yaml diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml new file mode 100644 index 0000000..31870a7 --- /dev/null +++ b/.gitea/workflows/action.yaml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [ "master" ] + +jobs: + build-and-test: + runs-on: linepics + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: compile + run: | + cmake -B build -DBUILD_TEST=ON + - name: Run tests + run: | + ./build/test + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b5ed30..a94f725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,7 @@ project(generic VERSION 1.0) add_compile_options( -Wall -Wformat=2 - -g - -O0 + -O2 -Wuninitialized -Wno-unused-function )