-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (37 loc) · 1.05 KB
/
build.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
name: build and test
on: [push]
jobs:
build-Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build and run
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DNANOSPLINE_HEADER_ONLY=Off
cmake --build . --config Release -j
cmake --build . --config Release --target test
build-MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: build and run
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DNANOSPLINE_HEADER_ONLY=Off
cmake --build . --config Release -j
ctest -V
#cmake --build . --config Release --target test
build-Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: build and run
run: |
mkdir build
cd build
cmake .. -DCMAKE_GENERATOR_PLATFORM=x64 -DNANOSPLINE_HEADER_ONLY=Off
cmake --build . --config Release -j
cmake --build . --config Release --target run_unit_tests