File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 23
23
using : composite
24
24
steps :
25
25
- name : Set up CTK cache variable
26
- shell : bash -xeuo pipefail {0}
26
+ shell : bash --noprofile --norc - xeuo pipefail {0}
27
27
run : |
28
28
HASH=$(echo -n "${{ inputs.cuda-components }}" | sha256sum | awk '{print $1}')
29
29
echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH" >> $GITHUB_ENV
48
48
49
49
- name : Get CUDA components
50
50
if : ${{ steps.ctk-get-cache.outputs.cache-hit != 'true' }}
51
- shell : bash -xeuo pipefail {0}
51
+ shell : bash --noprofile --norc - xeuo pipefail {0}
52
52
run : |
53
53
# Everything under this folder is packed and stored in the GitHub Cache space,
54
54
# and unpacked after retrieving from the cache.
@@ -128,7 +128,7 @@ runs:
128
128
129
129
- name : Restore CTK cache
130
130
if : ${{ steps.ctk-get-cache.outputs.cache-hit == 'true' }}
131
- shell : bash -xeuo pipefail {0}
131
+ shell : bash --noprofile --norc - xeuo pipefail {0}
132
132
run : |
133
133
ls -l
134
134
CACHE_TMP_DIR="./cache_tmp_dir"
@@ -144,7 +144,7 @@ runs:
144
144
fi
145
145
146
146
- name : Set output environment variables
147
- shell : bash -xeuo pipefail {0}
147
+ shell : bash --noprofile --norc - xeuo pipefail {0}
148
148
run : |
149
149
# mimics actual CTK installation
150
150
if [[ "${{ inputs.host-platform }}" == linux* ]]; then
Original file line number Diff line number Diff line change @@ -109,11 +109,25 @@ jobs:
109
109
# Self-extracting, see https://gitforwindows.org/zip-archives-extracting-the-released-archives.html
110
110
Start-Process .\PortableGit.7z.exe -Wait -Verbose -ArgumentList '-y -gm2'
111
111
ls -l PortableGit
112
- #New-Item -Path PortableGit\bash.exe -ItemType SymbolicLink -Value PortableGit\git-bash.exe
113
112
echo "$((Get-Location).Path)\\PortableGit\\bin" >> $env:GITHUB_PATH
114
113
$env:Path += ";$((Get-Location).Path)\\PortableGit\\bin"
115
114
bash --version
116
115
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
+
117
131
- name : Download cuda-python & cuda.bindings build artifacts from the prior branch
118
132
if : ${{ env.SKIP_CUDA_BINDINGS_TEST == '1'}}
119
133
env :
You can’t perform that action at this time.
0 commit comments