From 679f5c08875d9f2391b90b9c11ad2cab3029ec46 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 2 Dec 2025 21:54:19 +0000 Subject: [PATCH 1/2] backport fetch_ctk fixes --- .github/actions/fetch_ctk/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index 6cec9651057..b6da52c2a62 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -123,6 +123,10 @@ runs: for item in $(echo $CTK_CACHE_COMPONENTS | tr ',' ' '); do populate_cuda_path "$item" done + # TODO: check Windows + if [[ "${{ inputs.host-platform }}" == linux* ]]; then + mv $CACHE_TMP_DIR/lib $CACHE_TMP_DIR/lib64 + fi ls -l $CACHE_TMP_DIR # Prepare the cache @@ -176,7 +180,8 @@ runs: # mimics actual CTK installation if [[ "${{ inputs.host-platform }}" == linux* ]]; then CUDA_PATH=$(realpath "${{ inputs.cuda-path }}") - echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV + echo "${CUDA_PATH}/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV elif [[ "${{ inputs.host-platform }}" == win* ]]; then function normpath() { echo "$(echo $(cygpath -w $1) | sed 's/\\/\\\\/g')" From 1625d9bb8e3736970e4e096621b1c30857b40d33 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 2 Dec 2025 21:15:34 -0500 Subject: [PATCH 2/2] check if the lib subdir exists --- .github/actions/fetch_ctk/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index b6da52c2a62..11983a60a44 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -124,7 +124,7 @@ runs: populate_cuda_path "$item" done # TODO: check Windows - if [[ "${{ inputs.host-platform }}" == linux* ]]; then + if [[ "${{ inputs.host-platform }}" == linux* && -d "${CACHE_TMP_DIR}/lib" ]]; then mv $CACHE_TMP_DIR/lib $CACHE_TMP_DIR/lib64 fi ls -l $CACHE_TMP_DIR