88 - cron : ' 30 10 * * *'
99 workflow_dispatch :
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215
1316 build :
@@ -130,7 +133,7 @@ jobs:
130133
131134 steps :
132135 - name : Sync Repository
133- uses : actions/checkout@v4
136+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
134137 with :
135138 submodules : recursive
136139
@@ -175,12 +178,12 @@ jobs:
175178 - name : Install MDL SDK
176179 if : env.IS_EXTENDED_BUILD == 'true' && matrix.extended_build_mdl_sdk == 'ON' && runner.os == 'Windows'
177180 run : |
178- C:/vcpkg/vcpkg install mdl-sdk[dds,df-vulkan,openimageio] --triplet=x64-windows-release
181+ C:/vcpkg/vcpkg install mdl-sdk --triplet=x64-windows-release
179182 Add-Content $env:GITHUB_PATH "C:/vcpkg/installed/x64-windows-release/bin"
180183
181184 - name : Install Python ${{ matrix.python }}
182185 if : matrix.python != 'None'
183- uses : actions/setup-python@v5
186+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
184187 with :
185188 python-version : ${{ matrix.python }}
186189 architecture : ${{ matrix.architecture }}
@@ -322,61 +325,70 @@ jobs:
322325
323326 - name : Upload Installed Package
324327 if : matrix.python != 'None'
325- uses : actions/upload-artifact@v4
328+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
326329 with :
327330 name : MaterialX_${{ matrix.name }}
328331 path : build/installed/
329332
330333 - name : Upload Formatted Source
331334 if : matrix.clang_format == 'ON'
332- uses : actions/upload-artifact@v4
335+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
333336 with :
334337 name : MaterialX_ClangFormat
335338 path : source
336339
337340 - name : Upload Reference Shaders
338- uses : actions/upload-artifact@v4
341+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
339342 if : matrix.upload_shaders == 'ON'
340343 with :
341344 name : MaterialX_ReferenceShaders
342345 path : build/bin/reference/
343346
344347 - name : Upload Renders
345- uses : actions/upload-artifact@v4
348+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
346349 if : matrix.test_render == 'ON'
347350 with :
348351 name : Renders_${{ matrix.name }}
349352 path : build/render/*.png
350353
351354 - name : Upload Resources (MacOS)
352- uses : actions/upload-artifact@v4
355+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
353356 if : matrix.test_render == 'ON' && runner.os == 'macOS'
354357 with :
355358 name : Resources_${{ matrix.name }}
356359 path : build/bin/resources
357360
358361 - name : Upload Coverage Report
359- uses : actions/upload-artifact@v4
362+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
360363 if : matrix.coverage_analysis == 'ON'
361364 with :
362365 name : MaterialX_Coverage
363366 path : build/coverage
364367
365368 - name : Upload Perfetto Traces
366- uses : actions/upload-artifact@v4
369+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
367370 if : matrix.extended_build_perfetto == 'ON' && env.IS_EXTENDED_BUILD == 'true'
368371 with :
369372 name : Traces_${{ matrix.name }}
370373 path : build/**/*.perfetto-trace
371374 if-no-files-found : ignore
372375
376+ - name : Upload Log Files
377+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
378+ if : always()
379+ with :
380+ name : Log_files_${{ matrix.name }}
381+ path : build/bin/**/*.txt
382+
373383 javascript :
374384 name : JavaScript
375385 runs-on : ubuntu-latest
386+ permissions :
387+ contents : write
376388
377389 steps :
378390 - name : Sync Repository
379- uses : actions/checkout@v4
391+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
380392
381393 - name : Install Emscripten
382394 run : |
@@ -388,7 +400,7 @@ jobs:
388400 echo "EMSDK=$EMSDK" >> $GITHUB_ENV
389401
390402 - name : Install Node
391- uses : actions/setup-node@v4
403+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
392404 with :
393405 node-version : ' 22.16.0'
394406
@@ -413,14 +425,14 @@ jobs:
413425
414426 - name : Deploy Web Viewer
415427 if : github.event_name != 'pull_request'
416- uses : JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
428+ uses : JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
417429 with :
418430 branch : gh-pages
419431 folder : javascript/MaterialXView/dist
420432 single-commit : true
421433
422434 - name : Upload JavaScript Package
423- uses : actions/upload-artifact@v4
435+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
424436 with :
425437 name : MaterialX_JavaScript
426438 path : javascript/build/installed/JavaScript/MaterialX
@@ -434,10 +446,10 @@ jobs:
434446
435447 steps :
436448 - name : Sync Repository
437- uses : actions/checkout@v4
449+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
438450
439451 - name : Install Python
440- uses : actions/setup-python@v5
452+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
441453 with :
442454 python-version : 3.11
443455
@@ -449,7 +461,7 @@ jobs:
449461 echo "filename=$(ls dist)" >> "$GITHUB_OUTPUT"
450462
451463 - name : Upload SDist
452- uses : actions/upload-artifact@v4
464+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
453465 with :
454466 name : MaterialX_Python_SDist
455467 path : dist/*.tar.gz
@@ -462,38 +474,38 @@ jobs:
462474 strategy :
463475 fail-fast : false
464476 matrix :
465- python-minor : ['9', '10', '11', '12', '13']
477+ python-minor : ['9', '10', '11', '12', '13', '14' ]
466478 os : ['ubuntu-24.04', 'windows-2022', 'macos-15']
467479
468480 steps :
469481 - name : Sync Repository
470- uses : actions/checkout@v4
482+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
471483
472484 - name : Install Python 3.${{ matrix.python-minor }}
473- uses : actions/setup-python@v5
485+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
474486 with :
475487 python-version : 3.${{ matrix.python-minor }}
476488
477489 - name : Download Sdist
478- uses : actions/download-artifact@v4
490+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
479491 with :
480492 name : MaterialX_Python_SDist
481493 path : sdist
482494
483495 - name : Install Doxygen (Windows)
484- uses : ssciwr/doxygen-install@v1
496+ uses : ssciwr/doxygen-install@f13be1686235deee0aeb6cdf56640170691dc96b # v1
485497 if : runner.os == 'Windows'
486498
487499 - name : Build Wheel
488- uses : pypa/cibuildwheel@v2.23.2
500+ uses : pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
489501 with :
490502 package-dir : ${{ github.workspace }}/sdist/${{ needs.sdist.outputs.sdist_filename }}
491503 env :
492504 CIBW_BUILD : ' cp3${{ matrix.python-minor }}-*'
493505 CIBW_SKIP : ' *musllinux*'
494506 CIBW_ARCHS : ' auto64'
495507 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
496- CIBW_BEFORE_ALL_LINUX : yum install -y libXt-devel doxygen
508+ CIBW_BEFORE_ALL_LINUX : dnf install -y libXt-devel doxygen
497509 CIBW_BEFORE_ALL_MACOS : brew install doxygen
498510 CIBW_BUILD_VERBOSITY : 1
499511 CIBW_ENVIRONMENT : CMAKE_BUILD_PARALLEL_LEVEL=2
@@ -509,7 +521,7 @@ jobs:
509521 working-directory : python
510522
511523 - name : Upload Wheel
512- uses : actions/upload-artifact@v4
524+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
513525 with :
514526 name : MaterialX_Python_Wheel_${{ runner.os }}_3_${{ matrix.python-minor }}
515527 path : wheelhouse/*.whl
0 commit comments