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 )