3434 uses : ./.github/actions/install_unix_deps
3535 continue-on-error : false
3636 with :
37- dependencies : " zstd curl xz-utils rsync "
38- dependent_exes : " zstd curl xz rsync "
37+ dependencies : " zstd curl xz-utils"
38+ dependent_exes : " zstd curl xz"
3939
4040 - name : Download CTK cache
4141 id : ctk-get-cache
@@ -106,11 +106,15 @@ runs:
106106 # Note: try to escape | and > ...
107107 tar -czvf ${CTK_CACHE_FILENAME} ${CACHE_TMP_DIR}
108108
109+ # "Move" files from temp dir to CUDA_PATH
109110 CUDA_PATH="./cuda_toolkit"
110111 mkdir -p $CUDA_PATH
111- rsync -av $CACHE_TMP_DIR/ $CUDA_PATH
112- ls -l $CUDA_PATH
112+ # We could have just done "rsync -av $CACHE_TMP_DIR/ $CUDA_PATH"; however,
113+ # not all runners have rsync pre-installed (or even installable, such as
114+ # Git Bash). We do it in the dumb way.
115+ cp -r $CACHE_TMP_DIR/*/* $CUDA_PATH
113116 rm -rf $CACHE_TMP_DIR
117+ ls -l $CUDA_PATH
114118
115119 - name : Upload CTK cache
116120 if : ${{ always() &&
@@ -129,7 +133,8 @@ runs:
129133 CUDA_PATH="./cuda_toolkit"
130134 mkdir -p $CUDA_PATH
131135 tar -xzvf $CTK_CACHE_FILENAME
132- rsync -av $CACHE_TMP_DIR/ $CUDA_PATH
136+ # Can't use rsync here, see above
137+ cp -r $CACHE_TMP_DIR/*/* $CUDA_PATH
133138 rm -rf $CACHE_TMP_DIR $CTK_CACHE_FILENAME
134139 ls -l $CUDA_PATH
135140 if [ ! -d "$CUDA_PATH/include" ]; then
0 commit comments