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 }}
@@ -323,61 +326,70 @@ jobs:
323326
324327 - name : Upload Installed Package
325328 if : matrix.python != 'None'
326- uses : actions/upload-artifact@v4
329+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
327330 with :
328331 name : MaterialX_${{ matrix.name }}
329332 path : build/installed/
330333
331334 - name : Upload Formatted Source
332335 if : matrix.clang_format == 'ON'
333- uses : actions/upload-artifact@v4
336+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
334337 with :
335338 name : MaterialX_ClangFormat
336339 path : source
337340
338341 - name : Upload Reference Shaders
339- uses : actions/upload-artifact@v4
342+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
340343 if : matrix.upload_shaders == 'ON'
341344 with :
342345 name : MaterialX_ReferenceShaders
343346 path : build/bin/reference/
344347
345348 - name : Upload Renders
346- uses : actions/upload-artifact@v4
349+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
347350 if : matrix.test_render == 'ON'
348351 with :
349352 name : Renders_${{ matrix.name }}
350353 path : build/render/*.png
351354
352355 - name : Upload Resources (MacOS)
353- uses : actions/upload-artifact@v4
356+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
354357 if : matrix.test_render == 'ON' && runner.os == 'macOS'
355358 with :
356359 name : Resources_${{ matrix.name }}
357360 path : build/bin/resources
358361
359362 - name : Upload Coverage Report
360- uses : actions/upload-artifact@v4
363+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
361364 if : matrix.coverage_analysis == 'ON'
362365 with :
363366 name : MaterialX_Coverage
364367 path : build/coverage
365368
366369 - name : Upload Perfetto Traces
367- uses : actions/upload-artifact@v4
370+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
368371 if : matrix.extended_build_perfetto == 'ON' && env.IS_EXTENDED_BUILD == 'true'
369372 with :
370373 name : Traces_${{ matrix.name }}
371374 path : build/**/*.perfetto-trace
372375 if-no-files-found : ignore
373376
377+ - name : Upload Log Files
378+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
379+ if : always()
380+ with :
381+ name : Log_files_${{ matrix.name }}
382+ path : build/bin/**/*.txt
383+
374384 javascript :
375385 name : JavaScript
376386 runs-on : ubuntu-latest
387+ permissions :
388+ contents : write
377389
378390 steps :
379391 - name : Sync Repository
380- uses : actions/checkout@v4
392+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
381393
382394 - name : Install Emscripten
383395 run : |
@@ -389,7 +401,7 @@ jobs:
389401 echo "EMSDK=$EMSDK" >> $GITHUB_ENV
390402
391403 - name : Install Node
392- uses : actions/setup-node@v4
404+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
393405 with :
394406 node-version : ' 22.16.0'
395407
@@ -414,14 +426,14 @@ jobs:
414426
415427 - name : Deploy Web Viewer
416428 if : github.event_name != 'pull_request'
417- uses : JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
429+ uses : JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
418430 with :
419431 branch : gh-pages
420432 folder : javascript/MaterialXView/dist
421433 single-commit : true
422434
423435 - name : Upload JavaScript Package
424- uses : actions/upload-artifact@v4
436+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
425437 with :
426438 name : MaterialX_JavaScript
427439 path : javascript/build/installed/JavaScript/MaterialX
@@ -435,10 +447,10 @@ jobs:
435447
436448 steps :
437449 - name : Sync Repository
438- uses : actions/checkout@v4
450+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
439451
440452 - name : Install Python
441- uses : actions/setup-python@v5
453+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
442454 with :
443455 python-version : 3.11
444456
@@ -450,7 +462,7 @@ jobs:
450462 echo "filename=$(ls dist)" >> "$GITHUB_OUTPUT"
451463
452464 - name : Upload SDist
453- uses : actions/upload-artifact@v4
465+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
454466 with :
455467 name : MaterialX_Python_SDist
456468 path : dist/*.tar.gz
@@ -463,38 +475,38 @@ jobs:
463475 strategy :
464476 fail-fast : false
465477 matrix :
466- python-minor : ['9', '10', '11', '12', '13']
478+ python-minor : ['9', '10', '11', '12', '13', '14' ]
467479 os : ['ubuntu-24.04', 'windows-2022', 'macos-15']
468480
469481 steps :
470482 - name : Sync Repository
471- uses : actions/checkout@v4
483+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
472484
473485 - name : Install Python 3.${{ matrix.python-minor }}
474- uses : actions/setup-python@v5
486+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
475487 with :
476488 python-version : 3.${{ matrix.python-minor }}
477489
478490 - name : Download Sdist
479- uses : actions/download-artifact@v4
491+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
480492 with :
481493 name : MaterialX_Python_SDist
482494 path : sdist
483495
484496 - name : Install Doxygen (Windows)
485- uses : ssciwr/doxygen-install@v1
497+ uses : ssciwr/doxygen-install@f13be1686235deee0aeb6cdf56640170691dc96b # v1
486498 if : runner.os == 'Windows'
487499
488500 - name : Build Wheel
489- uses : pypa/cibuildwheel@v2.23.2
501+ uses : pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
490502 with :
491503 package-dir : ${{ github.workspace }}/sdist/${{ needs.sdist.outputs.sdist_filename }}
492504 env :
493505 CIBW_BUILD : ' cp3${{ matrix.python-minor }}-*'
494506 CIBW_SKIP : ' *musllinux*'
495507 CIBW_ARCHS : ' auto64'
496508 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
497- CIBW_BEFORE_ALL_LINUX : yum install -y libXt-devel doxygen
509+ CIBW_BEFORE_ALL_LINUX : dnf install -y libXt-devel doxygen
498510 CIBW_BEFORE_ALL_MACOS : brew install doxygen
499511 CIBW_BUILD_VERBOSITY : 1
500512 CIBW_ENVIRONMENT : CMAKE_BUILD_PARALLEL_LEVEL=2
@@ -510,7 +522,7 @@ jobs:
510522 working-directory : python
511523
512524 - name : Upload Wheel
513- uses : actions/upload-artifact@v4
525+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
514526 with :
515527 name : MaterialX_Python_Wheel_${{ runner.os }}_3_${{ matrix.python-minor }}
516528 path : wheelhouse/*.whl
0 commit comments