-
Notifications
You must be signed in to change notification settings - Fork 1.9k
180 lines (176 loc) · 5.51 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_linux:
name: Build on linux systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
cuda: "11.7"
arch: 86
python: "3.11"
- os: ubuntu-22.04
cuda: "11.7"
arch: 75
python: "3.10"
- os: ubuntu-22.04
cuda: "11.7"
arch: 70
python: "3.9"
- os: ubuntu-22.04
cuda: "11.7"
arch: 61
python: "3.8"
- os: ubuntu-22.04
cuda: "11.7"
arch: 53
python: "3.7"
- os: ubuntu-22.04
cuda: "11.7"
arch: 37
python: "3.7"
cmake_flags: "-DNGP_BUILD_WITH_GUI=OFF -DNGP_BUILD_WITH_VULKAN=OFF -DNGP_BUILD_WITH_OPTIX=OFF"
env:
build_dir: "build"
config: "Release"
TCNN_CUDA_ARCHITECTURES: ${{ matrix.arch }}
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install build-essential python3-dev libglfw3-dev libglew-dev libxinerama-dev libxcursor-dev libxi-dev
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: pip install -r requirements.txt
- name: Install CUDA
env:
cuda: ${{ matrix.cuda }}
run: ./dependencies/cuda-cmake-github-actions/scripts/actions/install_cuda_ubuntu.sh
shell: bash
- name: Install Vulkan SDK
uses: humbletim/[email protected]
- name: CMake
run: cmake . -B ${{ env.build_dir }} ${{ matrix.cmake_flags }} -DCMAKE_BUILD_TYPE=${{ env.config }}
- name: Build
working-directory: ${{ env.build_dir }}
run: cmake --build . --target all --verbose -j `nproc`
build_windows:
name: Build on Windows
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 86
python: "3.11"
recommended_gpus: "RTX-3000-and-4000"
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 75
python: "3.10"
recommended_gpus: "RTX-2000"
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 70
python: "3.9"
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 61
python: "3.8"
recommended_gpus: "GTX-1000"
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 53
python: "3.7"
cmake_flags: "-DNGP_BUILD_WITH_GUI=OFF -DNGP_BUILD_WITH_VULKAN=OFF -DNGP_BUILD_WITH_OPTIX=OFF"
- os: windows-2019
visual_studio: "Visual Studio 16 2019"
cuda: "11.5.1"
arch: 37
python: "3.7"
env:
build_dir: "build"
config: "Release"
TCNN_CUDA_ARCHITECTURES: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: pip install -r requirements.txt
- name: Install CUDA
env:
cuda: ${{ matrix.cuda }}
visual_studio: ${{ matrix.visual_studio }}
shell: powershell
run: .\dependencies\cuda-cmake-github-actions\scripts\actions\install_cuda_windows.ps1
- name: Install Vulkan SDK
uses: humbletim/[email protected]
- name: CMake
run: cmake . -B ${{ env.build_dir }} ${{ matrix.cmake_flags }} -G "${{ matrix.visual_studio }}" -A x64
- name: Build
working-directory: ${{ env.build_dir }}
run: cmake --build . --config ${{ env.config }} --target ALL_BUILD --verbose
- name: Upload release
if: ${{ matrix.recommended_gpus }}
uses: actions/upload-artifact@v3
with:
name: Instant-NGP-for-${{ matrix.recommended_gpus }}
path: |
LICENSE.txt
README.md
requirements.txt
cudart64*.dll
instant-ngp.exe
nvngx_dlss.dll
configs/
docs/nerf_dataset_tips.md
docs/assets_readme/
data/
scripts/flip/*
scripts/category2id.json
scripts/colmap2nerf.py
scripts/common.py
scripts/convert_image.py
scripts/download_colmap.bat
scripts/download_ffmpeg.bat
scripts/mask_images.py
scripts/nsvf2nerf.py
scripts/record3d2nerf.py
continuous_release:
name: "Update continuous development release"
runs-on: ubuntu-latest
permissions:
contents: write
needs: [build_windows]
if: github.ref == 'refs/heads/master'
steps:
- name: Grab binary artifacts
uses: actions/download-artifact@v3
- name: Package
run: for i in */; do zip -r "${i%/}.zip" "$i"; done
- name: Update release
uses: eine/tip@master
with:
files: "*.zip"
rm: true
tag: "continuous"
token: ${{ secrets.GITHUB_TOKEN }}