Skip to content

Commit d252fe9

Browse files
committed
Sync with 'master'
2 parents dd5da48 + 80ccd8a commit d252fe9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,12 @@ jobs:
181181
repository: 'microsoft/vcpkg'
182182
path: 'compat/vcbuild/vcpkg'
183183
- 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
192188
- name: add msbuild to PATH
193-
uses: microsoft/setup-msbuild@v1
189+
uses: microsoft/setup-msbuild@v2
194190
- name: copy dlls to root
195191
shell: cmd
196192
run: compat\vcbuild\vcpkg_copy_dlls.bat release

0 commit comments

Comments
 (0)