erki d68ca918fa
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 21s
I give up, the old way it is
2023-05-15 23:42:11 +03:00

33 lines
823 B
YAML

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: |
apt update
apt install -y --no-install-recommends build-essential cmake ninja-build
- name: Configure build
working-directory: ${{runner.workspace}}
run: |
mkdir build
cd build
cmake .. \
-G"Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DSKULLC_WITH_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