зеркало из https://github.com/microsoft/git.git
Merge pull request #3150 from dscho/ci-cache-vcpkg-artifacts-g4w
ci: cache vcpkg artifacts
This commit is contained in:
Коммит
83e228cff4
|
@ -149,14 +149,10 @@ jobs:
|
||||||
repository: 'microsoft/vcpkg'
|
repository: 'microsoft/vcpkg'
|
||||||
path: 'compat/vcbuild/vcpkg'
|
path: 'compat/vcbuild/vcpkg'
|
||||||
- name: download vcpkg artifacts
|
- name: download vcpkg artifacts
|
||||||
shell: powershell
|
uses: git-for-windows/get-azure-pipelines-artifact@v0
|
||||||
run: |
|
with:
|
||||||
$urlbase = "https://dev.azure.com/git/git/_apis/build/builds"
|
repository: git/git
|
||||||
$id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=9&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
|
definitionId: 9
|
||||||
$downloadUrl = ((Invoke-WebRequest -UseBasicParsing "${urlbase}/$id/artifacts").content | ConvertFrom-JSON).value[0].resource.downloadUrl
|
|
||||||
(New-Object Net.WebClient).DownloadFile($downloadUrl, "compat.zip")
|
|
||||||
Expand-Archive compat.zip -DestinationPath . -Force
|
|
||||||
Remove-Item compat.zip
|
|
||||||
- name: add msbuild to PATH
|
- name: add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v1
|
||||||
- name: copy dlls to root
|
- name: copy dlls to root
|
||||||
|
|
Загрузка…
Ссылка в новой задаче