Skip to content

Commit 4a4cf10

Browse files
committed
ci: add headless build+test workflow for Windows and Linux
1 parent 709c62a commit 4a4cf10

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
pull_request:
7+
branches: ['**']
8+
9+
jobs:
10+
build-and-test:
11+
name: ${{ matrix.config.name }}
12+
runs-on: ${{ matrix.config.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
config:
18+
- name: "Windows MSVC"
19+
os: windows-latest
20+
- name: "Ubuntu GCC"
21+
os: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Configure CMake (headless — graphics deps not required)
27+
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug
28+
29+
- name: Build
30+
run: cmake --build build --config Debug
31+
32+
- name: Test
33+
run: ctest --test-dir build --build-config Debug --output-on-failure

0 commit comments

Comments
 (0)