Skip to content

Commit

Permalink
switch to gz for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang committed Dec 8, 2024
1 parent bb5fed3 commit 9d6e69b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ runs:
- name: Set up CTK cache variable
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}.tar.xz" >> $GITHUB_ENV
echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}.tar.gz" >> $GITHUB_ENV
- name: Download CTK cache
id: ctk-get-cache
Expand Down Expand Up @@ -115,7 +115,7 @@ runs:
# Prepare the cache
# Note: try to escape | and > ...
echo "$(tar cf - ${CUDA_PATH} | xz -z -T0 - > ${CTK_CACHE_FILENAME})"
tar -czvf ${CTK_CACHE_FILENAME} ${CUDA_PATH}
# Note: the headers will be copied into the cibuildwheel manylinux container,
# so setting the CUDA_PATH env var here is meaningless.
Expand All @@ -134,7 +134,7 @@ runs:
run: |
CUDA_PATH="./cuda_toolkit"
mkdir $CUDA_PATH
tar -xvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
tar -xzvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
ls -l $CUDA_PATH
if [ ! -d "$CUDA_PATH/include" ]; then
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
- name: Set up CTK cache variable
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}.tar.xz" >> $GITHUB_ENV
echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}.tar.gz" >> $GITHUB_ENV
- name: Download CTK cache
id: ctk-get-cache
Expand All @@ -61,7 +61,7 @@ runs:
run: |
CUDA_PATH="./cuda_toolkit"
mkdir $CUDA_PATH
tar -xvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
tar -xzvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
ls -l $CUDA_PATH
if [ ! -d "$CUDA_PATH/include" ]; then
exit 1
Expand Down

0 comments on commit 9d6e69b

Please sign in to comment.