-
Notifications
You must be signed in to change notification settings - Fork 470
50 lines (40 loc) · 1 KB
/
ci-cpu-macos.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
name: cpu-macos-build-and-test
on:
push:
paths-ignore:
- '**.md'
- 'images/**'
pull_request:
paths-ignore:
- '**.md'
- 'images/**'
jobs:
build:
name: Build and test
strategy:
matrix:
config: [ '', '-DPBRT_DBG_LOGGING=True', '-DPBRT_FLOAT_AS_DOUBLE=True' ]
fail-fast: false
runs-on: macos-latest
steps:
- name: Checkout pbrt
uses: actions/checkout@v4
with:
submodules: true
- name: Checkout rgb2spectrum tables
uses: actions/checkout@v4
with:
repository: mmp/rgb2spectrum
path: build
- name: Get cmake
uses: lukka/get-cmake@latest
- name: Configure
run: |
cd build
cmake .. -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True ${{ matrix.config }}
- name: Build
run: cmake --build build --parallel --config Release
- name: Test
if: ${{ matrix.config == '' }}
run: ./pbrt_test
working-directory: build