Update the win+VS build definition
cover Update the win+VS build definition
These two patches have been in Git for Windows' fork for quite a while.
While the win+VS builds are not run in Git's CI builds, it is still a good idea to upstream these changes.
Johannes Schindelin (2):
ci: bump microsoft/setup-msbuild from v1 to v2 ci(win+VS): download the vcpkg artifacts using a dedicated GitHub
Action
.github/workflows/main.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
base-commit: bb9c16bd4f1a9a00799e10c81ee6506cf468c0c7
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1775%2Fdscho%2Fwin%2BVS-updates-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1775/dscho/win+VS-updates-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1775
Signature · 1 line
gitgitgadget
PATCH 1/2 ci: bump microsoft/setup-msbuild from v1 to v2
From: Johannes Schindelin <[email protected]>
The main benefit: The new version uses a node.js version that is not yet deprecated.
Links:
- [Release notes](https://github.com/microsoft/setup-msbuild/releases)
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md)
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1...v2)
This patch was originally by GitHub's Dependabot, but I cannot attribute that bot properly because it has no dedicated email address. Probably because it hasn't reached legal age yet, or something.
--- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/main.yml +1 -1
@@ -190,7 +190,7 @@ jobs: Expand-Archive compat.zip -DestinationPath . -Force Remove-Item compat.zip - name: add msbuild to PATH - uses: microsoft/setup-msbuild@v1 + uses: microsoft/setup-msbuild@v2 - name: copy dlls to root shell: cmd run: compat\vcbuild\vcpkg_copy_dlls.bat release
Signature · 1 line
gitgitgadget
PATCH 2/2 ci(win+VS): download the vcpkg artifacts using a dedicated GitHub Action
In reply to Johannes Schindelin via GitGitGadgetFrom: Johannes Schindelin <[email protected]>
The Git for Windows project provides a GitHub Action to download and cache Azure Pipelines artifacts (such as the vcpkg artifacts), hiding gnarly internals, and also providing some robustness against network glitches. Let's use it.
--- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
.github/workflows/main.yml +4 -8
@@ -181,14 +181,10 @@ jobs: repository: 'microsoft/vcpkg' path: 'compat/vcbuild/vcpkg' - name: download vcpkg artifacts - shell: powershell - run: | - $urlbase = "https://dev.azure.com/git/git/_apis/build/builds" - $id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=9&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id - $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 + uses: git-for-windows/get-azure-pipelines-artifact@v0 + with: + repository: git/git + definitionId: 9 - name: add msbuild to PATH uses: microsoft/setup-msbuild@v2 - name: copy dlls to root
Signature · 1 line
gitgitgadget
"Johannes Schindelin via GitGitGadget" <[email protected]>
Quoted 5 lines · writes:
These two patches have been in Git for Windows' fork for quite a while.
While the win+VS builds are not run in Git's CI builds, it is still a good idea to upstream these changes.
Quoted 7 lines
Johannes Schindelin (2):
ci: bump microsoft/setup-msbuild from v1 to v2 ci(win+VS): download the vcpkg artifacts using a dedicated GitHub
Action.github/workflows/main.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
Thanks.
Do you mind if I applied these directly to 'maint' and merged the result upwards?
Hi Junio,
Quoted 13 lines · Junio C Hamano
"Johannes Schindelin via GitGitGadget" <[email protected]>
Quoted 10 lines · writes:
These two patches have been in Git for Windows' fork for quite a while.
While the win+VS builds are not run in Git's CI builds, it is still a good idea to upstream these changes.
Johannes Schindelin (2):
ci: bump microsoft/setup-msbuild from v1 to v2 ci(win+VS): download the vcpkg artifacts using a dedicated GitHub
Action
Quoted 7 lines
Quoted 2 lines
.github/workflows/main.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)Thanks.
Do you mind if I applied these directly to 'maint' and merged the result upwards?
I concur that this is a good idea.
Thank you,
Johannes
Quoted 4 lines · Johannes Schindelin
Quoted 2 lines
Do you mind if I applied these directly to 'maint' and merged the result upwards?
I concur that this is a good idea.
Will, do. Thanks.