@@ -107,19 +107,19 @@ jobs:
107
107
# }
108
108
# gh --version
109
109
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
123
123
124
124
- name : Install Git for Windows
125
125
# the GPU runner image does not have Git Bash pre-installed...
@@ -128,9 +128,10 @@ jobs:
128
128
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
129
129
run : |
130
130
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 "
132
132
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
134
135
echo "$((Get-Location).Path)\\PortableGit" >> $env:GITHUB_PATH
135
136
$env:Path += ";$((Get-Location).Path)\\PortableGit"
136
137
bash --version
0 commit comments