Skip to content

Commit 9ac3352

Browse files
authored
Allow ROCm jobs to save artifacts in RUNNER_TEMP (#7379)
Together with pytorch/pytorch#165821, this is to unblock pytorch/pytorch#165821 because ROCm runner can't create `artifacts-to-be-uploaded` directory on its `GITHUB_WORKSPACE` dir cc @jithunnair-amd @akashveramd --------- Signed-off-by: Huy Do <[email protected]>
1 parent 8828861 commit 9ac3352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/linux_job_v2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ jobs:
313313
if [[ -d "artifacts-to-be-uploaded" ]]; then
314314
mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
315315
fi
316+
if [[ -d "${RUNNER_TEMP}/artifacts-to-be-uploaded" ]]; then
317+
mv -v "${RUNNER_TEMP}"/artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
318+
fi
316319
fi
317320
318321
upload_docs=0

0 commit comments

Comments
 (0)