ci(gitea): run Linux unit tests
All checks were successful
Linux unit tests / unit-tests (push) Successful in 36s
All checks were successful
Linux unit tests / unit-tests (push) Successful in 36s
This commit is contained in:
33
.gitea/workflows/tests.yml
Normal file
33
.gitea/workflows/tests.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Linux unit tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --yes cmake ninja-build g++
|
||||
|
||||
- name: Configure
|
||||
run: >-
|
||||
cmake -S . -B build -G Ninja
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
-DIZO_BUILD_TESTS=ON
|
||||
-DIZO_BUILD_EXAMPLE=ON
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --parallel
|
||||
|
||||
- name: Run unit tests
|
||||
run: ctest --test-dir build --output-on-failure
|
||||
Reference in New Issue
Block a user