Gitea actions #2

Merged
erki merged 16 commits from feature/gitea_actions into master 2023-05-15 20:55:22 +00:00
Showing only changes of commit 0a5d8cd7ee - Show all commits

32
.gitea/workflows/ci.yml Normal file
View File

@ -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