@@ -351,12 +351,39 @@ jobs:
351
351
if : always()
352
352
run : echo "logsuffix=`echo ${{ matrix.test }} | sed -e 's!/!_!'g -e 's! !_!'g`" >> $GITHUB_ENV
353
353
354
- - name : Persist test logs
354
+ - name : Package test results
355
+ if : always()
356
+ working-directory : build/run-test-prebuilt/test-results/
357
+ run : >
358
+ zip -r9
359
+ "$HOME/linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
360
+ .
361
+ continue-on-error : true
362
+
363
+ - name : Package test support
364
+ if : always()
365
+ working-directory : build/run-test-prebuilt/test-support/
366
+ run : >
367
+ zip -r9
368
+ "$HOME/linux-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
369
+ .
370
+ -i *.jtr
371
+ -i hs_err*
372
+ -i replay*
373
+ continue-on-error : true
374
+
375
+ - name : Persist test results
376
+ if : always()
377
+ uses : actions/upload-artifact@v2
378
+ with :
379
+ path : ~/linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
380
+ continue-on-error : true
381
+
382
+ - name : Persist test outputs
355
383
if : always()
356
384
uses : actions/upload-artifact@v2
357
385
with :
358
- name : linux-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
359
- path : build/*/test-results
386
+ path : ~/linux-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
360
387
continue-on-error : true
361
388
362
389
linux_x32_build :
@@ -735,12 +762,41 @@ jobs:
735
762
if : always()
736
763
run : echo ("logsuffix=" + ("${{ matrix.test }}" -replace "/", "_" -replace " ", "_")) | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
737
764
738
- - name : Persist test logs
765
+ - name : Package test results
766
+ if : always()
767
+ working-directory : build/run-test-prebuilt/test-results/
768
+ run : >
769
+ $env:Path = "$HOME\cygwin\cygwin64\bin;$env:Path" ;
770
+ zip -r9
771
+ "$HOME/windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
772
+ .
773
+ continue-on-error : true
774
+
775
+ - name : Package test support
776
+ if : always()
777
+ working-directory : build/run-test-prebuilt/test-support/
778
+ run : >
779
+ $env:Path = "$HOME\cygwin\cygwin64\bin;$env:Path" ;
780
+ zip -r9
781
+ "$HOME/windows-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
782
+ .
783
+ -i *.jtr
784
+ -i hs_err*
785
+ -i replay*
786
+ continue-on-error : true
787
+
788
+ - name : Persist test results
789
+ if : always()
790
+ uses : actions/upload-artifact@v2
791
+ with :
792
+ path : ~/windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
793
+ continue-on-error : true
794
+
795
+ - name : Persist test outputs
739
796
if : always()
740
797
uses : actions/upload-artifact@v2
741
798
with :
742
- name : windows-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
743
- path : build/*/test-results
799
+ path : ~/windows-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
744
800
continue-on-error : true
745
801
746
802
macos_x64_build :
@@ -990,12 +1046,39 @@ jobs:
990
1046
if : always()
991
1047
run : echo "logsuffix=`echo ${{ matrix.test }} | sed -e 's!/!_!'g -e 's! !_!'g`" >> $GITHUB_ENV
992
1048
993
- - name : Persist test logs
1049
+ - name : Package test results
1050
+ if : always()
1051
+ working-directory : build/run-test-prebuilt/test-results/
1052
+ run : >
1053
+ zip -r9
1054
+ "$HOME/macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
1055
+ .
1056
+ continue-on-error : true
1057
+
1058
+ - name : Package test support
1059
+ if : always()
1060
+ working-directory : build/run-test-prebuilt/test-support/
1061
+ run : >
1062
+ zip -r9
1063
+ "$HOME/macos-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
1064
+ .
1065
+ -i *.jtr
1066
+ -i hs_err*
1067
+ -i replay*
1068
+ continue-on-error : true
1069
+
1070
+ - name : Persist test results
1071
+ if : always()
1072
+ uses : actions/upload-artifact@v2
1073
+ with :
1074
+ path : ~/macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
1075
+ continue-on-error : true
1076
+
1077
+ - name : Persist test outputs
994
1078
if : always()
995
1079
uses : actions/upload-artifact@v2
996
1080
with :
997
- name : macos-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
998
- path : build/*/test-results
1081
+ path : ~/macos-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
999
1082
continue-on-error : true
1000
1083
1001
1084
artifacts :
0 commit comments