Skip to content

Commit 78d0113

Browse files
committed
install zstd for win local ctk test
1 parent a73564c commit 78d0113

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/actions/fetch_ctk/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
using: composite
2424
steps:
2525
- name: Set up CTK cache variable
26-
shell: bash -xeuo pipefail {0}
26+
shell: bash --noprofile --norc -xeuo pipefail {0}
2727
run: |
2828
HASH=$(echo -n "${{ inputs.cuda-components }}" | sha256sum | awk '{print $1}')
2929
echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH" >> $GITHUB_ENV
@@ -48,7 +48,7 @@ runs:
4848

4949
- name: Get CUDA components
5050
if: ${{ steps.ctk-get-cache.outputs.cache-hit != 'true' }}
51-
shell: bash -xeuo pipefail {0}
51+
shell: bash --noprofile --norc -xeuo pipefail {0}
5252
run: |
5353
# Everything under this folder is packed and stored in the GitHub Cache space,
5454
# and unpacked after retrieving from the cache.
@@ -128,7 +128,7 @@ runs:
128128

129129
- name: Restore CTK cache
130130
if: ${{ steps.ctk-get-cache.outputs.cache-hit == 'true' }}
131-
shell: bash -xeuo pipefail {0}
131+
shell: bash --noprofile --norc -xeuo pipefail {0}
132132
run: |
133133
ls -l
134134
CACHE_TMP_DIR="./cache_tmp_dir"
@@ -144,7 +144,7 @@ runs:
144144
fi
145145
146146
- name: Set output environment variables
147-
shell: bash -xeuo pipefail {0}
147+
shell: bash --noprofile --norc -xeuo pipefail {0}
148148
run: |
149149
# mimics actual CTK installation
150150
if [[ "${{ inputs.host-platform }}" == linux* ]]; then

.github/workflows/test-wheel-windows.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,25 @@ jobs:
109109
# Self-extracting, see https://gitforwindows.org/zip-archives-extracting-the-released-archives.html
110110
Start-Process .\PortableGit.7z.exe -Wait -Verbose -ArgumentList '-y -gm2'
111111
ls -l PortableGit
112-
#New-Item -Path PortableGit\bash.exe -ItemType SymbolicLink -Value PortableGit\git-bash.exe
113112
echo "$((Get-Location).Path)\\PortableGit\\bin" >> $env:GITHUB_PATH
114113
$env:Path += ";$((Get-Location).Path)\\PortableGit\\bin"
115114
bash --version
116115
116+
- name: Install zstd
117+
# the GPU runner image does not have zstd pre-installed... and it's needed by actions/cache
118+
if: ${{ inputs.local-ctk == '1' }}
119+
env:
120+
# doesn't seem there's an easy way to avoid hard-coding it?
121+
ZSTD_URL: https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-v1.5.7-win64.zip
122+
ZSTD_DIR: zstd-v1.5.7-win64
123+
run: |
124+
Invoke-WebRequest -Uri "$env:ZSTD_URL" -OutFile "zstd-win64.zip"
125+
Expand-Archive -Path "zstd-win64.zip"
126+
ls -l $env:ZSTD_DIR
127+
echo "$((Get-Location).Path)\\$env:ZSTD_DIR" >> $env:GITHUB_PATH
128+
$env:Path += ";$((Get-Location).Path)\\$env:ZSTD_DIR"
129+
zstd -h
130+
117131
- name: Download cuda-python & cuda.bindings build artifacts from the prior branch
118132
if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '1'}}
119133
env:

0 commit comments

Comments
 (0)