Skip to content

Commit e7627e3

Browse files
committed
test installing git for windows
1 parent bd770e1 commit e7627e3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ jobs:
107107
}
108108
gh --version
109109
110+
- name: Install Git for Windows
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+
GFW_EXE_URL: https://github.com/git-for-windows/git/releases/download/v2.49.0.windows.1/PortableGit-2.49.0-64-bit.7z.exe
115+
run: |
116+
Invoke-WebRequest -Uri "$env:GFW_EXE_URL" -OutFile "PortableGit.7z.exe"
117+
Start-Process 7z -Wait -Verbose -ArgumentList "x PortableGit.7z.exe -oPortableGit"
118+
ls -l PortableGit
119+
mv PortableGit\git-bash.exe PortableGit\bash.exe
120+
echo "$(pwd).path\\PortableGit" >> $env:GITHUB_PATH
121+
$env:Path += ";$(pwd).path\\PortableGit"
122+
bash --version
123+
110124
- name: Download cuda-python & cuda.bindings build artifacts from the prior branch
111125
if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '1'}}
112126
env:

0 commit comments

Comments
 (0)