-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 1.06 KB
/
build.yaml
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
name: Validate
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
# macos-latest points to macos-12, which has AppleClang 14.0.
# Read more: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
platform: [windows-latest, macos-13]
configuration: [Debug, Release]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
- name: Build
run: cmake --build build --config ${{ matrix.configuration }} --target bvh-visualizer hw-skymodel-demo hw-sunmodel-integrator pt-format-tool pt textractor tests -j 16 --
- name: Test
if: matrix.platform == 'windows-latest'
working-directory: build/${{ matrix.configuration }}
run: ./tests.exe
- name: Test
if: matrix.platform == 'macos-13'
working-directory: build/
run: ./tests