-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.25 KB
/
ci.yml
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
name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-suite:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Debug, Release]
build_flags: ['', '-DDOUBLE_PRECISION=ON', '-DOBJECT_LAYER_BITS=32']
exclude:
- os: ubuntu-latest
build_type: Release
runs-on: ${{ matrix.os }}
name: Tests - ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.build_flags }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup C++ Tooling
uses: aminya/setup-cpp@v1
with:
compiler: ${{ contains(matrix.os, 'windows') && 'msvc' || 'clang' }}
cmake: true
- name: Configure CMake
run: cmake -B build ${{ matrix.build_flags }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build build --config=${{ matrix.build_type }}
- name: Run Hello World
shell: bash
run: |
./build/${{ matrix.build_type }}/HelloWorld
if: ${{ contains(matrix.os, 'windows') }}
- name: Run Hello World
shell: bash
run: |
./build/HelloWorld
if: ${{ !contains(matrix.os, 'windows') }}