-
Notifications
You must be signed in to change notification settings - Fork 37
53 lines (43 loc) · 1.42 KB
/
anari_sdk_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
name: ANARI-SDK CI
on:
push:
branches: [ next_release ]
pull_request:
branches: [ main, next_release ]
env:
ANARI_LIBRARY: helide
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
config: [Release, Debug]
steps:
- uses: actions/checkout@v3
- name: Install Packages
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt install -y libboost-system-dev
- name: Configure CMake
run: >
cmake -LA -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install
-DBUILD_SHARED_LIBS=ON
-DBUILD_EXAMPLES=ON
-DBUILD_HDANARI=OFF
-DBUILD_HELIDE_DEVICE=ON
-DBUILD_REMOTE_DEVICE=${{ matrix.os == 'ubuntu-latest' }}
-DBUILD_TESTING=ON
-DBUILD_VIEWER=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} --target install
- name: Unit Tests
working-directory: ${{github.workspace}}/build
run: ctest -R unit_test -C ${{ matrix.config }}
- name: Render Tests
working-directory: ${{github.workspace}}/build
run: ctest -R render_test -C ${{ matrix.config }}
- name: Tutorial Tests
working-directory: ${{github.workspace}}/build
run: ctest -R anariTutorial -C ${{ matrix.config }}