Skip to content

Commit f419ad1

Browse files
dschovdye
authored andcommitted
Merge pull request #3150 from dscho/ci-cache-vcpkg-artifacts-g4w
ci: cache vcpkg artifacts
2 parents 0058072 + d1d76ae commit f419ad1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,10 @@ jobs:
149149
repository: 'microsoft/vcpkg'
150150
path: 'compat/vcbuild/vcpkg'
151151
- name: download vcpkg artifacts
152-
shell: powershell
153-
run: |
154-
$urlbase = "https://dev.azure.com/git/git/_apis/build/builds"
155-
$id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=9&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
156-
$downloadUrl = ((Invoke-WebRequest -UseBasicParsing "${urlbase}/$id/artifacts").content | ConvertFrom-JSON).value[0].resource.downloadUrl
157-
(New-Object Net.WebClient).DownloadFile($downloadUrl, "compat.zip")
158-
Expand-Archive compat.zip -DestinationPath . -Force
159-
Remove-Item compat.zip
152+
uses: git-for-windows/get-azure-pipelines-artifact@v0
153+
with:
154+
repository: git/git
155+
definitionId: 9
160156
- name: add msbuild to PATH
161157
uses: microsoft/setup-msbuild@v1
162158
- name: copy dlls to root

0 commit comments

Comments
 (0)