@@ -169,8 +169,11 @@ jobs:
169169 NO_PERL : 1
170170 GIT_CONFIG_PARAMETERS : " 'user.name=CI' 'user.email=ci@git'"
171171 runs-on : windows-latest
172+ strategy :
173+ matrix :
174+ arch : [x64, arm64]
172175 concurrency :
173- group : vs-build-${{ github.ref }}
176+ group : vs-build-${{ github.ref }}-${{ matrix.arch }}
174177 cancel-in-progress : ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
175178 steps :
176179 - uses : actions/checkout@v4
@@ -181,26 +184,22 @@ jobs:
181184 repository : ' microsoft/vcpkg'
182185 path : ' compat/vcbuild/vcpkg'
183186 - 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
187+ uses : git-for-windows/get-azure-pipelines-artifact@v0
188+ with :
189+ repository : git/git
190+ definitionId : 9
192191 - name : add msbuild to PATH
193- uses : microsoft/setup-msbuild@v1
192+ uses : microsoft/setup-msbuild@v2
194193 - name : copy dlls to root
195194 shell : cmd
196- run : compat\vcbuild\vcpkg_copy_dlls.bat release
195+ run : compat\vcbuild\vcpkg_copy_dlls.bat release ${{ matrix.arch }}-windows
197196 - name : generate Visual Studio solution
198197 shell : bash
199198 run : |
200- cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64 -windows \
201- -DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
199+ cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }} -windows \
200+ -DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows -DHOST_CPU=${{ matrix.arch }}
202201 - name : MSBuild
203- run : msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142
202+ run : msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
204203 - name : bundle artifact tar
205204 shell : bash
206205 env :
@@ -214,7 +213,7 @@ jobs:
214213 - name : upload tracked files and build artifacts
215214 uses : actions/upload-artifact@v4
216215 with :
217- name : vs-artifacts
216+ name : vs-artifacts-${{ matrix.arch }}
218217 path : artifacts
219218 vs-test :
220219 name : win+VS test
@@ -232,7 +231,7 @@ jobs:
232231 - name : download tracked files and build artifacts
233232 uses : actions/download-artifact@v4
234233 with :
235- name : vs-artifacts
234+ name : vs-artifacts-x64
236235 path : ${{github.workspace}}
237236 - name : extract tracked files and build artifacts
238237 shell : bash
0 commit comments