Skip to content

Commit c54332b

Browse files
committed
also install 7z...
1 parent 562b558 commit c54332b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40-
- name: Update driver
41-
run: |
42-
.github/workflows/install_gpu_driver.ps1
40+
# - name: Update driver
41+
# run: |
42+
# .github/workflows/install_gpu_driver.ps1
4343

4444
- name: Ensure GPU is working
4545
run: nvidia-smi
@@ -107,6 +107,21 @@ jobs:
107107
}
108108
gh --version
109109
110+
- name: Install 7z
111+
# the GPU runner image does not have Git Bash pre-installed...
112+
env:
113+
# doesn't seem there's an easy way to avoid hard-coding it?
114+
7Z_URL: https://www.7-zip.org/a/7z2409-x64.msi
115+
run: |
116+
Invoke-WebRequest -Uri "$env:7Z_URL" -OutFile "7z_installer.msi"
117+
Start-Process msiexec.exe -Wait -Verbose -ArgumentList '/i "7z_installer.msi" /qn'
118+
$GH_POSSIBLE_PATHS = "C:\\Program Files\\7-Zip", "C:\\Program Files (x86)\\7-Zip"
119+
foreach ($p in $GH_POSSIBLE_PATHS) {
120+
echo "$p" >> $env:GITHUB_PATH
121+
$env:Path += ";$p"
122+
}
123+
7z --version
124+
110125
- name: Install Git for Windows
111126
# the GPU runner image does not have Git Bash pre-installed...
112127
env:

0 commit comments

Comments
 (0)