38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Merge-Checker
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: true
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies (CMake + Ninja + build tools)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y cmake ninja-build build-essential time git
|
|
|
|
- name: Configure project with CMake
|
|
run: cmake -G Ninja -S . -B build/
|
|
|
|
- name: Build with Ninja
|
|
run: ninja -C build/
|
|
|
|
- name: Run all unit tests except matrix-timing-tests
|
|
run: |
|
|
for test_exec in build/unit-tests/matrix-tests build/unit-tests/quaternion-tests build/unit-tests/vector-3d-tests; do
|
|
if [ -x "$test_exec" ]; then
|
|
echo "Running $test_exec"
|
|
"$test_exec"
|
|
else
|
|
echo "Warning: $test_exec not found or not executable"
|
|
fi
|
|
done |