-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 947 Bytes
/
build.yml
File metadata and controls
40 lines (31 loc) · 947 Bytes
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
name: CMake
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Fetch Submodules
run: git submodule update --init
- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-DCMAKE_INSTALL_PREFIX:PATH=${{github.workspace}}/install
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --target glug_math examples check install install-examples --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -V -C ${{env.BUILD_TYPE}}