@@ -55,6 +55,17 @@ inputs:
5555 description : >-
5656 Whether this workflow is executed on YJIT.
5757
58+ outputs :
59+ stdout_report_path :
60+ value : ${{ steps.variables.outputs.stdout_report_path }}
61+ description : >-
62+ Report file path for standard output.
63+
64+ stderr_report_path :
65+ value : ${{ steps.variables.outputs.stderr_report_path }}
66+ description : >-
67+ Report file path for standard error.
68+
5869runs :
5970 using : composite
6071
@@ -135,6 +146,7 @@ runs:
135146 if : steps.enable-launchable.outputs.enable-launchable && startsWith(inputs.os, 'macos')
136147
137148 - name : Set up Launchable
149+ id : setup-launchable
138150 shell : bash
139151 working-directory : ${{ inputs.srcdir }}
140152 run : |
@@ -224,6 +236,38 @@ runs:
224236 btest_report_file : ${{ steps.global.outputs.btest_report_file }}
225237 test_spec_report_dir : ${{ steps.global.outputs.test_spec_report_dir }}
226238
239+ - name : Clean up session files in Launchable
240+ uses : gacts/run-and-post-run@674528335da98a7afc80915ff2b4b860a0b3553a # v1.4.0
241+ with :
242+ shell : bash
243+ working-directory : ${{ inputs.srcdir }}
244+ post : |
245+ rm -f "${test_all_session_file}"
246+ rm -f "${btest_session_file}"
247+ rm -f "${test_spec_session_file}
248+ if : always() && steps.setup-launchable.outcome == 'success'
249+ env :
250+ test_all_session_file : ${{ steps.global.outputs.test_all_session_file }}
251+ btest_session_file : ${{ steps.global.outputs.btest_session_file }}
252+ test_spec_session_file : ${{ steps.global.outputs.test_spec_session_file }}
253+
254+ - name : Clean up test results in Launchable
255+ uses : gacts/run-and-post-run@674528335da98a7afc80915ff2b4b860a0b3553a # v1.4.0
256+ with :
257+ shell : bash
258+ working-directory : ${{ inputs.builddir }}
259+ post : |
260+ rm -f "${test_all_report_file}"
261+ rm -f "${btest_report_file}"
262+ rm -fr "${test_spec_report_dir}"
263+ rm -f launchable_stdout.log
264+ rm -f launchable_stderr.log
265+ if : always() && steps.setup-launchable.outcome == 'success'
266+ env :
267+ test_all_report_file : ${{ steps.global.outputs.test_all_report_file }}
268+ btest_report_file : ${{ steps.global.outputs.btest_report_file }}
269+ test_spec_report_dir : ${{ steps.global.outputs.test_spec_report_dir }}
270+
227271 - name : Variables to report Launchable
228272 id : variables
229273 shell : bash
@@ -300,15 +344,6 @@ runs:
300344 --session "$(cat "${test_spec_session_file}")" \
301345 raw ${test_spec_report_path}/* || true; \
302346 fi
303-
304- rm -f "${test_all_session_file}"
305- rm -f "${btest_session_file}"
306- rm -f "${test_spec_session_file}"
307- rm -f "${test_report_path}"
308- rm -f "${btest_report_path}"
309- rm -fr "${test_spec_report_path}"
310- rm -f "${stdout_report_path}"
311- rm -f "${stderr_report_path}"
312347 if : ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
313348 env :
314349 test_report_path : ${{ steps.variables.outputs.test_report_path }}
0 commit comments