Skip to content

Commit 9ed89da

Browse files
committed
Turn off GraphEditor render for Mac since it's running GLSL. Not Metal.
1 parent af8e353 commit 9ed89da

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
fi
267267
cppcheck --project=build/compile_commands.json --error-exitcode=1 --suppress=normalCheckLevelMaxBranches --suppress=*:*/External/* --suppress=*:*/NanoGUI/*
268268
269-
- name: Initialize Rendering (Linux)
269+
- name: Initialize Virtual Framebuffer (Linux)
270270
if: matrix.test_render == 'ON' && runner.os == 'Linux'
271271
run: |
272272
Xvfb :1 -screen 0 1280x960x24 &
@@ -276,12 +276,11 @@ jobs:
276276
- name: Initialize Rendering (macOS)
277277
if: matrix.test_render == 'ON' && runner.os == 'macOS'
278278
run: |
279-
# macOS can render headlessly with Metal backend without virtual display
280-
# Force software rendering for Metal backend
279+
# macOS can render headless with Metal backend without virtual display
280+
# Force software rendering for Metal backend (more reliable in CI)
281281
echo "MTL_HARDWARE_RENDERING=0" >> $GITHUB_ENV
282282
# Enable Metal debug layer for better debugging in CI
283283
echo "MTL_DEBUG_LAYER=1" >> $GITHUB_ENV
284-
# Force software rendering for OpenGL backend compatibility
285284
echo "LIBGL_ALWAYS_SOFTWARE=1" >> $GITHUB_ENV
286285
287286
- name: Render Script Tests
@@ -296,6 +295,11 @@ jobs:
296295
run: |
297296
../installed/bin/MaterialXView --material brass_average_baked.mtlx --mesh ../../resources/Geometry/sphere.obj --screenWidth 128 --screenHeight 128 --cameraZoom 1.4 --shadowMap false --captureFilename Viewer_BrassAverage.png
298297
../installed/bin/MaterialXView --material usd_preview_surface_carpaint.mtlx --mesh ../../resources/Geometry/sphere.obj --screenWidth 128 --screenHeight 128 --cameraZoom 1.4 --shadowMap false --captureFilename Viewer_CarpaintTranslated.png
298+
working-directory: build/render
299+
300+
- name: Render Application Tests (GraphEditor - Linux only)
301+
if: matrix.test_render == 'ON' && runner.os == 'Linux'
302+
run: |
299303
../installed/bin/MaterialXGraphEditor --material ../../resources/Materials/Examples/StandardSurface/standard_surface_marble_solid.mtlx --viewWidth 128 --viewHeight 128 --captureFilename GraphEditor_MarbleSolid.png
300304
working-directory: build/render
301305

0 commit comments

Comments
 (0)