Skip to content

Commit 0418045

Browse files
committed
self extracting + run post install
1 parent fa6abf0 commit 0418045

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,19 @@ 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" /q INSTALLDIR="C:\Program Files\7-Zip" /qn'
118-
ls -l "C:\Program Files\7-Zip"
119-
echo "C:\Program Files\7-Zip" >> $env:GITHUB_PATH
120-
$env:Path += ";C:\Program Files\7-Zip"
121-
echo $env:Path
122-
7z
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" /q INSTALLDIR="C:\Program Files\7-Zip" /qn'
118+
# ls -l "C:\Program Files\7-Zip"
119+
# echo "C:\Program Files\7-Zip" >> $env:GITHUB_PATH
120+
# $env:Path += ";C:\Program Files\7-Zip"
121+
# echo $env:Path
122+
# 7z
123123

124124
- name: Install Git for Windows
125125
# the GPU runner image does not have Git Bash pre-installed...
@@ -128,9 +128,10 @@ jobs:
128128
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
129129
run: |
130130
Invoke-WebRequest -Uri "$env:GFW_EXE_URL" -OutFile "PortableGit.7z.exe"
131-
Start-Process 7z -Wait -Verbose -ArgumentList "x PortableGit.7z.exe -oPortableGit"
131+
.\PortableGit.7z.exe -y -gm2 -InstallPath=".\\PortableGit"
132132
ls -l PortableGit
133-
mv PortableGit\git-bash.exe PortableGit\bash.exe
133+
.\PortableGit\post-install.bat
134+
New-Item -Path PortableGit\bash.exe -ItemType SymbolicLink -Value PortableGit\git-bash.exe
134135
echo "$((Get-Location).Path)\\PortableGit" >> $env:GITHUB_PATH
135136
$env:Path += ";$((Get-Location).Path)\\PortableGit"
136137
bash --version

0 commit comments

Comments
 (0)