Skip to content

Commit 7fad116

Browse files
committed
Move all debug and static windows builds to the weekly CI
Signed-off-by: Dan Bailey <[email protected]>
1 parent 8340096 commit 7fad116

File tree

3 files changed

+126
-39
lines changed

3 files changed

+126
-39
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -130,47 +130,34 @@ jobs:
130130
run: ccache --evict-older-than 1d
131131

132132
windows:
133-
# Windows CI. Tests static and dynamic builds with MT and MD respectively.
133+
# Windows CI. Tests a dynamic build with MD.
134134
if: |
135135
github.event_name != 'workflow_dispatch' ||
136136
github.event.inputs.type == 'all' ||
137137
github.event.inputs.type == 'win'
138138
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
139-
name: windows-vc:${{ matrix.config.vc }}-type:${{ matrix.config.build }}
139+
name: windows
140140
env:
141-
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
141+
VCPKG_DEFAULT_TRIPLET: x64-windows
142142
strategy:
143-
matrix:
144-
config:
145-
# static build of blosc from vcpkg does not build internal sources.
146-
# USE_STATIC_DEPENDENCIES is required for IlmBase/OpenEXR defines and
147-
# Boost as both shared and static libs are installed.
148-
# USE_EXPLICIT_INSTANTIATION is disabled for debug static libraries
149-
# due to disk space constraints
150-
# @note Commented out the static debug build due to linker OOM LNK1102
151-
- { vc: 'x64-windows-static', components: 'core,bin,view,render,test', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON' }
152-
#- { vc: 'x64-windows-static', components: 'core,bin,view,render,test', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON -DUSE_EXPLICIT_INSTANTIATION=OFF' }
153-
- { vc: 'x64-windows', components: 'core,bin,view,render,python,test', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
154-
- { vc: 'x64-windows', components: 'core,bin,view,render,python,test', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
155-
#- { vc: 'x64-windows', build: 'Release', cmake: '-G \"MinGW Makefiles\" -DOPENVDB_CORE_STATIC=OFF' }
156143
fail-fast: false
157144
steps:
158145
- uses: actions/checkout@v3
159146
- name: path
160147
shell: pwsh
161148
run: |
162149
# note: system path must be modified in a previous step to it's use
163-
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
164-
echo "${{github.workspace}}\build\openvdb\openvdb\${{ matrix.config.build }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
150+
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
151+
echo "${{github.workspace}}\build\openvdb\openvdb\Release" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
165152
- name: install
166153
run: ./ci/install_windows.sh
167154
- name: build
168155
run: >
169156
./ci/build.sh -v
170-
--config=${{ matrix.config.build }}
171-
--components=${{ matrix.config.components }}
157+
--config='Release'
158+
--components='core,bin,view,render,python,test'
172159
--cargs=\'
173-
${{ matrix.config.cmake }}
160+
-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF
174161
-DMSVC_COMPRESS_PDB=ON
175162
-DUSE_EXR=ON
176163
-DUSE_PNG=ON
@@ -181,10 +168,7 @@ jobs:
181168
# Print the build directy size (monitor if we're hitting runner limits)
182169
run: du -h build
183170
- name: test
184-
# Always run tests on weekly builds but skip Debug on commits as they take a while.
185-
# https://github.community/t/distinct-job-for-each-schedule/17811/2
186-
if: contains(github.event.schedule, '0 7 * * 1') || matrix.config.build == 'Release'
187-
run: cd build && ctest -V -C ${{ matrix.config.build }}
171+
run: cd build && ctest -V -C Release
188172

189173
macos:
190174
if: |

.github/workflows/nanovdb.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,18 @@ jobs:
104104
github.event.inputs.type == 'win'
105105
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
106106
env:
107-
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
107+
VCPKG_DEFAULT_TRIPLET: 'x64-windows'
108108
visual_studio: "Visual Studio 17 2022"
109109
cuda: "12.4.0"
110110
strategy:
111-
matrix:
112-
config:
113-
# static build of blosc from vcpkg does not build internal sources.
114-
# USE_STATIC_DEPENDENCIES is required for IlmBase/OpenEXR defines and
115-
# Boost as both shared and static libs are installed.
116-
- { vc: 'x64-windows-static', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded' }
117-
- { vc: 'x64-windows-static', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug' }
118-
- { vc: 'x64-windows', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
119-
- { vc: 'x64-windows', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
120111
fail-fast: false
121112
steps:
122113
- uses: actions/checkout@v3
123114
- name: path
124115
run: |
125116
# note: system path must be modified in a previous step to it's use
126-
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
127-
echo "${{github.workspace}}\build\openvdb\openvdb\${{ matrix.config.build }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
117+
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
118+
echo "${{github.workspace}}\build\openvdb\openvdb\Release" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
128119
- name: install_cuda
129120
shell: powershell
130121
run: .\ci\install_windows_cuda.ps1
@@ -135,10 +126,10 @@ jobs:
135126
shell: bash
136127
run: >
137128
./ci/build.sh -v
138-
--config=${{ matrix.config.build }}
129+
--config=Release
139130
--components=core,nano,nanotest,nanoexam,nanobench,nanotool
140131
--cargs=\'
141-
${{ matrix.config.cmake }}
132+
-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF
142133
-DMSVC_COMPRESS_PDB=ON
143134
-DUSE_EXPLICIT_INSTANTIATION=OFF
144135
-DNANOVDB_USE_CUDA=ON

.github/workflows/weekly.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,60 @@ jobs:
228228
- name: test
229229
run: cd build && ctest -V
230230

231+
windows:
232+
# Windows CI. Tests static and dynamic builds with MT and MD respectively.
233+
if: |
234+
github.event_name != 'workflow_dispatch' ||
235+
github.event.inputs.type == 'all' ||
236+
github.event.inputs.type == 'win'
237+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
238+
name: windows-vc:${{ matrix.config.vc }}-type:${{ matrix.config.build }}
239+
env:
240+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
241+
strategy:
242+
matrix:
243+
config:
244+
# static build of blosc from vcpkg does not build internal sources.
245+
# USE_STATIC_DEPENDENCIES is required for IlmBase/OpenEXR defines and
246+
# Boost as both shared and static libs are installed.
247+
# USE_EXPLICIT_INSTANTIATION is disabled for debug static libraries
248+
# due to disk space constraints
249+
- { vc: 'x64-windows-static', components: 'core,bin,view,render,test', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON' }
250+
- { vc: 'x64-windows', components: 'core,bin,view,render,python,test', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
251+
- { vc: 'x64-windows', components: 'core,bin,view,render,python,test', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
252+
fail-fast: false
253+
steps:
254+
- uses: actions/checkout@v3
255+
- name: path
256+
shell: pwsh
257+
run: |
258+
# note: system path must be modified in a previous step to it's use
259+
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
260+
echo "${{github.workspace}}\build\openvdb\openvdb\${{ matrix.config.build }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
261+
- name: install
262+
run: ./ci/install_windows.sh
263+
- name: build
264+
run: >
265+
./ci/build.sh -v
266+
--config=${{ matrix.config.build }}
267+
--components=${{ matrix.config.components }}
268+
--cargs=\'
269+
${{ matrix.config.cmake }}
270+
-DMSVC_COMPRESS_PDB=ON
271+
-DUSE_EXR=ON
272+
-DUSE_PNG=ON
273+
-DVCPKG_TARGET_TRIPLET=${VCPKG_DEFAULT_TRIPLET}
274+
-DCMAKE_TOOLCHAIN_FILE=\"${VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake\"
275+
\'
276+
- name: size
277+
# Print the build directy size (monitor if we're hitting runner limits)
278+
run: du -h build
279+
- name: test
280+
# Always run tests on weekly builds but skip Debug on commits as they take a while.
281+
# https://github.community/t/distinct-job-for-each-schedule/17811/2
282+
if: contains(github.event.schedule, '0 7 * * 1') || matrix.config.build == 'Release'
283+
run: cd build && ctest -V -C ${{ matrix.config.build }}
284+
231285
#############################################################################
232286
############################ AX Library Extras ##############################
233287
#############################################################################
@@ -393,6 +447,64 @@ jobs:
393447
################################## Blosc ####################################
394448
#############################################################################
395449

450+
windows-nanovdb:
451+
if: |
452+
github.event_name != 'workflow_dispatch' ||
453+
github.event.inputs.type == 'all' ||
454+
github.event.inputs.type == 'win'
455+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
456+
env:
457+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
458+
visual_studio: "Visual Studio 17 2022"
459+
cuda: "12.4.0"
460+
strategy:
461+
matrix:
462+
config:
463+
# static build of blosc from vcpkg does not build internal sources.
464+
# USE_STATIC_DEPENDENCIES is required for IlmBase/OpenEXR defines and
465+
# Boost as both shared and static libs are installed.
466+
- { vc: 'x64-windows-static', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded' }
467+
- { vc: 'x64-windows-static', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_SHARED=OFF -DUSE_STATIC_DEPENDENCIES=ON -DBLOSC_USE_EXTERNAL_SOURCES=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug' }
468+
- { vc: 'x64-windows', build: 'Release', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
469+
- { vc: 'x64-windows', build: 'Debug', cmake: '-A x64 -G \"Visual Studio 17 2022\" -DOPENVDB_CORE_STATIC=OFF' }
470+
fail-fast: false
471+
steps:
472+
- uses: actions/checkout@v3
473+
- name: path
474+
shell: powershell
475+
run: |
476+
# note: system path must be modified in a previous step to it's use
477+
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
478+
echo "${{github.workspace}}\build\openvdb\openvdb\${{ matrix.config.build }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
479+
- name: install_cuda
480+
shell: powershell
481+
run: .\ci\install_windows_cuda.ps1
482+
- name: install_deps
483+
shell: bash
484+
run: ./ci/install_windows.sh
485+
- name: build
486+
shell: bash
487+
run: >
488+
./ci/build.sh -v
489+
--config=${{ matrix.config.build }}
490+
--components=core,nano,nanotest,nanoexam,nanobench,nanotool
491+
--cargs=\'
492+
${{ matrix.config.cmake }}
493+
-DMSVC_COMPRESS_PDB=ON
494+
-DUSE_EXPLICIT_INSTANTIATION=OFF
495+
-DNANOVDB_USE_CUDA=ON
496+
-DNANOVDB_USE_OPENVDB=ON
497+
-DVCPKG_TARGET_TRIPLET=${VCPKG_DEFAULT_TRIPLET}
498+
-DCMAKE_TOOLCHAIN_FILE=\"${VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake\"
499+
\'
500+
- name: test
501+
shell: bash
502+
run: cd build && ctest -V -E ".*cuda.*"
503+
504+
#############################################################################
505+
################################## Blosc ####################################
506+
#############################################################################
507+
396508
linux-blosc:
397509
if: |
398510
github.event_name != 'workflow_dispatch' ||

0 commit comments

Comments
 (0)