Skip to content

Commit 2a6edc2

Browse files
authored
not sure if this would work on git for windows...
1 parent d9a2d66 commit 2a6edc2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/actions/fetch_ctk/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,8 @@ runs:
124124
shell: bash --noprofile --norc -xeuo pipefail {0}
125125
run: |
126126
ls -l
127-
CACHE_TMP_DIR="./cache_tmp_dir"
128-
tar -xzvf $CTK_CACHE_FILENAME
129127
CUDA_PATH="./cuda_toolkit"
130-
mkdir -p $CUDA_PATH
131-
mv $CACHE_TMP_DIR/* $CUDA_PATH
132-
rmdir $CACHE_TMP_DIR
128+
tar -xzvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
133129
ls -l $CUDA_PATH
134130
if [ ! -d "$CUDA_PATH/include" ]; then
135131
exit 1

0 commit comments

Comments
 (0)