-
Notifications
You must be signed in to change notification settings - Fork 40
61 lines (60 loc) · 1.9 KB
/
build-visrtx.yml
File metadata and controls
61 lines (60 loc) · 1.9 KB
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
54
55
56
57
58
59
60
61
name: VisRTX CI
on:
push:
branches: [ next_release ]
paths:
- 'devices/**'
- '.github/actions/**'
- '.github/workflows/build-visrtx.yml'
pull_request:
branches: [ main, next_release ]
paths:
- 'devices/**'
- '.github/actions/**'
- '.github/workflows/build-visrtx.yml'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [linux, windows]
cudaversion: ['12.4.1', '13.0.2']
config: [Release, Debug]
include:
- os: linux
runs-on: ubuntu-22.04
generator: Ninja
- os: windows
runs-on: windows-2022
generator: Ninja
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Setup CUDA Toolkit
uses: ./.github/actions/setup-cuda
with:
cuda-version: ${{ matrix.cudaversion }}
- name: Build ANARI-SDK
uses: ./.github/actions/build-anari-sdk
with:
config: ${{ matrix.config }}
install-prefix: ${{ github.workspace }}/deps
build-deps-path: devices/rtx/cmake/build_deps
generator: ${{ matrix.generator }}
- name: Configure VisRTX
run: >
cmake -LA -G "${{ matrix.generator }}" -B ${{github.workspace}}/build-visrtx
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/deps
-DVISRTX_BUILD_RTX_DEVICE=ON
-DVISRTX_PRECOMPILE_SHADERS=OFF
-DVISRTX_BUILD_GL_DEVICE=OFF
-DVISRTX_BUILD_TSD=OFF
- name: Install VisRTX
run: >
cmake --build ${{ github.workspace }}/build-visrtx --config ${{ matrix.config }} --target install --parallel