-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.13 KB
/
Copy pathci.yml
File metadata and controls
44 lines (37 loc) · 1.13 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
name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
build-and-test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: windows-msvc
os: windows-latest
preset: windows-msvc
- name: ubuntu-gcc
os: ubuntu-latest
preset: linux-gcc
- name: ubuntu-clang
os: ubuntu-latest
preset: linux-clang
steps:
- uses: actions/checkout@v4
# GLFW needs OpenGL + X11 development headers to build on Linux.
- name: Install Linux GL/X11 dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev xorg-dev
- name: Configure (fetches & builds GLFW; warnings-as-errors on first-party code)
run: cmake --preset ${{ matrix.preset }}
- name: Build
run: cmake --build --preset ${{ matrix.preset }}
# Tests are headless (doctest + physics only) — no display or GPU required.
- name: Test
run: ctest --preset ${{ matrix.preset }}