Skip to content

Commit f03ac9a

Browse files
Simplify NanoGUI workaround in GitHub CI (#2332)
This changelist simplifies our workaround for NanoGUI CMake settings in our GitHub CI, defining CMAKE_POLICY_VERSION_MINIMUM at CMake generation time.
1 parent a527a89 commit f03ac9a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,12 @@ jobs:
172172
if: matrix.python != 'None'
173173
run: pip install setuptools
174174

175-
- name: Install CMake
176-
uses: lukka/get-cmake@28983e0d3955dba2bb0a6810caae0c6cf268ec0c # v4.0.0
177-
with:
178-
cmakeVersion: 3.26
179-
180175
- name: Run Clang Format
181176
if: matrix.clang_format == 'ON'
182177
run: find source \( -name *.h -o -name *.cpp -o -name *.mm -o -name *.inl \) ! -path "*/External/*" ! -path "*/NanoGUI/*" | xargs clang-format -i --verbose
183178

184179
- name: CMake Generate
185-
run: cmake -S . -B build -DMATERIALX_BUILD_PYTHON=ON -DMATERIALX_BUILD_VIEWER=ON -DMATERIALX_BUILD_GRAPH_EDITOR=ON -DMATERIALX_BUILD_TESTS=ON -DMATERIALX_TEST_RENDER=OFF -DMATERIALX_WARNINGS_AS_ERRORS=ON ${{matrix.cmake_config}}
180+
run: cmake -S . -B build -DMATERIALX_BUILD_PYTHON=ON -DMATERIALX_BUILD_VIEWER=ON -DMATERIALX_BUILD_GRAPH_EDITOR=ON -DMATERIALX_BUILD_TESTS=ON -DMATERIALX_TEST_RENDER=OFF -DMATERIALX_WARNINGS_AS_ERRORS=ON "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ${{matrix.cmake_config}}
186181

187182
- name: CMake Build
188183
run: cmake --build build --target install --config Release --parallel 2

0 commit comments

Comments
 (0)