-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.5 KB
/
ci.yml
File metadata and controls
71 lines (59 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
workflow_dispatch: # manual trigger only until builds are validated locally
# push:
# branches: [master, main]
# pull_request:
# branches: [master, main]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: Linux (GCC)
cmake_args: -DCMAKE_BUILD_TYPE=Release
- os: macos-latest
name: macOS (Apple Clang)
cmake_args: -DCMAKE_BUILD_TYPE=Release
- os: windows-latest
name: Windows (MSVC)
cmake_args: -DCMAKE_BUILD_TYPE=Release
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# ── System dependencies ────────────────────────────────────
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libgl-dev \
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \
libgtk-3-dev \
python3-dev
# ── Python setup ───────────────────────────────────────────
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python test dependencies
run: pip install pyarrow polars pandas numpy pytest
# ── Cache FetchContent downloads ───────────────────────────
- name: Cache FetchContent
uses: actions/cache@v4
with:
path: build/_deps
key: deps-${{ runner.os }}-${{ hashFiles('cmake/Dependencies.cmake') }}
restore-keys: deps-${{ runner.os }}-
# ── Build ──────────────────────────────────────────────────
- name: Configure
run: cmake -B build ${{ matrix.cmake_args }}
- name: Build
run: cmake --build build --config Release --parallel
# ── Test ───────────────────────────────────────────────────
- name: C++ tests
run: ctest --test-dir build --config Release --output-on-failure
- name: Python tests
run: python -m pytest tests/python -v