34
34
uses : ./.github/actions/install_unix_deps
35
35
continue-on-error : false
36
36
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"
39
39
40
40
- name : Download CTK cache
41
41
id : ctk-get-cache
@@ -106,11 +106,15 @@ runs:
106
106
# Note: try to escape | and > ...
107
107
tar -czvf ${CTK_CACHE_FILENAME} ${CACHE_TMP_DIR}
108
108
109
+ # "Move" files from temp dir to CUDA_PATH
109
110
CUDA_PATH="./cuda_toolkit"
110
111
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
113
116
rm -rf $CACHE_TMP_DIR
117
+ ls -l $CUDA_PATH
114
118
115
119
- name : Upload CTK cache
116
120
if : ${{ always() &&
@@ -129,7 +133,8 @@ runs:
129
133
CUDA_PATH="./cuda_toolkit"
130
134
mkdir -p $CUDA_PATH
131
135
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
133
138
rm -rf $CACHE_TMP_DIR $CTK_CACHE_FILENAME
134
139
ls -l $CUDA_PATH
135
140
if [ ! -d "$CUDA_PATH/include" ]; then
0 commit comments