@@ -291,13 +291,20 @@ jobs:
291291 echo "::warning::Image Diff Detected: baseline images may need to be updated."
292292 echo "Download the baseline images from the artifacts of this workflow run."
293293 echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
294+ mkdir -p build/baselines
295+ for f in build/test_images/*.png; do
296+ [ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
297+ done
294298
295299 - uses : actions/upload-artifact@v7
296300 if : failure()
297301 with :
298302 name : baselines-default-diff
299303 retention-days : 7
300- path : build/
304+ path : |
305+ build/baselines/
306+ build/test_images/
307+ build/test_images_diff/
301308
302309 make-baselines-b64 :
303310 needs : install-and-cibuild
@@ -351,13 +358,20 @@ jobs:
351358 echo "::warning::Image Diff Detected: baseline images may need to be updated."
352359 echo "Download the baseline images from the artifacts of this workflow run."
353360 echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
361+ mkdir -p build/baselines
362+ for f in build/test_images/*.png; do
363+ [ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
364+ done
354365
355366 - uses : actions/upload-artifact@v7
356367 if : failure()
357368 with :
358369 name : baselines-b64-diff
359370 retention-days : 7
360- path : build/
371+ path : |
372+ build/baselines/
373+ build/test_images/
374+ build/test_images_diff/
361375
362376 make-baselines-virtual-webgl :
363377 needs : install-and-cibuild
@@ -411,13 +425,20 @@ jobs:
411425 echo "::warning::Image Diff Detected: baseline images may need to be updated."
412426 echo "Download the baseline images from the artifacts of this workflow run."
413427 echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
428+ mkdir -p build/baselines
429+ for f in build/test_images/*.png; do
430+ [ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
431+ done
414432
415433 - uses : actions/upload-artifact@v7
416434 if : failure()
417435 with :
418436 name : baselines-virtual-webgl-diff
419437 retention-days : 7
420- path : build/
438+ path : |
439+ build/baselines/
440+ build/test_images/
441+ build/test_images_diff/
421442
422443 make-baselines-mathjax3 :
423444 needs : install-and-cibuild
@@ -463,13 +484,20 @@ jobs:
463484 echo "::warning::Image Diff Detected: baseline images may need to be updated."
464485 echo "Download the baseline images from the artifacts of this workflow run."
465486 echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
487+ mkdir -p build/baselines
488+ for f in build/test_images/*.png; do
489+ [ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
490+ done
466491
467492 - uses : actions/upload-artifact@v7
468493 if : failure()
469494 with :
470495 name : baselines-mathjax3-diff
471496 retention-days : 7
472- path : build/
497+ path : |
498+ build/baselines/
499+ build/test_images/
500+ build/test_images_diff/
473501
474502 # ============================================================
475503 # Export generation and testing
0 commit comments