@@ -171,12 +171,7 @@ jobs:
171171 - name : Prepare reports
172172 if : failure()
173173 run : |
174- set -e
175- mkdir -p reports
176- cp ddprof-test/build/hs_err* reports/ || true
177- cp -r ddprof-lib/build/tmp reports/native_build
178- cp -r ddprof-test/build/reports/tests reports/tests
179- cp -r /tmp/recordings reports/recordings
174+ .github/scripts/prepare_reports.sh
180175 - uses : actions/upload-artifact@v4
181176 if : failure()
182177 with :
@@ -275,12 +270,7 @@ jobs:
275270 - name : Prepare reports
276271 if : failure()
277272 run : |
278- set -e
279- mkdir -p reports
280- cp ddprof-test/build/hs_err* reports/ || true
281- cp -r ddprof-lib/build/tmp reports/native_build
282- cp -r ddprof-test/build/reports/tests reports/tests
283- cp -r /tmp/recordings reports/recordings
273+ .github/scripts/prepare_reports.sh
284274 - uses : actions/upload-artifact@v4
285275 if : failure()
286276 with :
@@ -391,12 +381,7 @@ jobs:
391381 - name : Prepare reports
392382 if : failure()
393383 run : |
394- set -e
395- mkdir -p reports
396- cp ddprof-test/build/hs_err* reports/ || true
397- cp -r ddprof-lib/build/tmp reports/native_build
398- cp -r ddprof-test/build/reports/tests reports/tests
399- cp -r /tmp/recordings reports/recordings
384+ .github/scripts/prepare_reports.sh
400385 - uses : actions/upload-artifact@v4
401386 if : failure()
402387 with :
@@ -483,12 +468,7 @@ jobs:
483468 - name : Prepare reports
484469 if : failure()
485470 run : |
486- set -e
487- mkdir -p reports
488- cp ddprof-test/build/hs_err* reports/ || true
489- cp -r ddprof-lib/build/tmp reports/native_build
490- cp -r ddprof-test/build/reports/tests reports/tests
491- cp -r /tmp/recordings reports/recordings
471+ .github/scripts/prepare_reports.sh
492472 - uses : actions/upload-artifact@v4
493473 if : failure()
494474 with :
@@ -578,12 +558,7 @@ jobs:
578558 - name : Prepare reports
579559 if : failure()
580560 run : |
581- set -e
582- mkdir -p reports
583- cp ddprof-test/build/hs_err* reports/ || true
584- cp -r ddprof-lib/build/tmp reports/native_build
585- cp -r ddprof-test/build/reports/tests reports/tests
586- cp -r /tmp/recordings reports/recordings
561+ .github/scripts/prepare_reports.sh
587562 - uses : actions/upload-artifact@v4
588563 if : failure()
589564 with :
@@ -692,13 +667,7 @@ jobs:
692667 - name : Prepare reports
693668 if : failure()
694669 run : |
695- set -e
696- mkdir -p reports
697- cp ddprof-test/build/hs_err* reports/ || true
698- cp ddprof-test/hs_err* reports/
699- cp -r ddprof-lib/build/tmp reports/native_build
700- cp -r ddprof-test/build/reports/tests reports/tests
701- cp -r /tmp/recordings reports/recordings
670+ .github/scripts/prepare_reports.sh
702671 - uses : actions/upload-artifact@v4
703672 if : failure()
704673 with :
@@ -934,12 +903,7 @@ jobs:
934903 - name : Prepare reports
935904 if : failure()
936905 run : |
937- set -e
938- mkdir -p reports
939- cp ddprof-test/build/hs_err* reports/ || true
940- cp -r ddprof-lib/build/tmp reports/native_build
941- cp -r ddprof-test/build/reports/tests reports/tests
942- cp -r /tmp/recordings reports/recordings
906+ .github/scripts/prepare_reports.sh
943907 - uses : actions/upload-artifact@v4
944908 if : failure()
945909 with :
0 commit comments