38 lines
796 B
YAML
38 lines
796 B
YAML
name: C++ Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- "claude/**"
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: eulernest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install build tools
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y --no-install-recommends \
|
|
cmake \
|
|
g++ \
|
|
git \
|
|
ca-certificates
|
|
|
|
- name: Configure (Release, tests enabled)
|
|
run: |
|
|
cmake -S code -B build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_TESTING=ON
|
|
|
|
- name: Build test binary
|
|
run: cmake --build build --target conformallab_tests -j$(nproc)
|
|
|
|
- name: Run tests
|
|
run: ctest --test-dir build -R conformallab_tests --output-on-failure
|