File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -181,16 +181,12 @@ jobs:
181
181
repository : ' microsoft/vcpkg'
182
182
path : ' compat/vcbuild/vcpkg'
183
183
- name : download vcpkg artifacts
184
- shell : powershell
185
- run : |
186
- $urlbase = "https://dev.azure.com/git/git/_apis/build/builds"
187
- $id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=9&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
188
- $downloadUrl = ((Invoke-WebRequest -UseBasicParsing "${urlbase}/$id/artifacts").content | ConvertFrom-JSON).value[0].resource.downloadUrl
189
- (New-Object Net.WebClient).DownloadFile($downloadUrl, "compat.zip")
190
- Expand-Archive compat.zip -DestinationPath . -Force
191
- Remove-Item compat.zip
184
+ uses : git-for-windows/get-azure-pipelines-artifact@v0
185
+ with :
186
+ repository : git/git
187
+ definitionId : 9
192
188
- name : add msbuild to PATH
193
- uses : microsoft/setup-msbuild@v1
189
+ uses : microsoft/setup-msbuild@v2
194
190
- name : copy dlls to root
195
191
shell : cmd
196
192
run : compat\vcbuild\vcpkg_copy_dlls.bat release
You can’t perform that action at this time.
0 commit comments