@@ -169,8 +169,11 @@ jobs:
169
169
NO_PERL : 1
170
170
GIT_CONFIG_PARAMETERS : " 'user.name=CI' 'user.email=ci@git'"
171
171
runs-on : windows-latest
172
+ strategy :
173
+ matrix :
174
+ arch : [x64, arm64]
172
175
concurrency :
173
- group : vs-build-${{ github.ref }}
176
+ group : vs-build-${{ github.ref }}-${{ matrix.arch }}
174
177
cancel-in-progress : ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
175
178
steps :
176
179
- uses : actions/checkout@v4
@@ -181,26 +184,22 @@ jobs:
181
184
repository : ' microsoft/vcpkg'
182
185
path : ' compat/vcbuild/vcpkg'
183
186
- 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
192
191
- name : add msbuild to PATH
193
- uses : microsoft/setup-msbuild@v1
192
+ uses : microsoft/setup-msbuild@v2
194
193
- name : copy dlls to root
195
194
shell : cmd
196
- run : compat\vcbuild\vcpkg_copy_dlls.bat release
195
+ run : compat\vcbuild\vcpkg_copy_dlls.bat release ${{ matrix.arch }}-windows
197
196
- name : generate Visual Studio solution
198
197
shell : bash
199
198
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 }}
202
201
- 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
204
203
- name : bundle artifact tar
205
204
shell : bash
206
205
env :
@@ -214,7 +213,7 @@ jobs:
214
213
- name : upload tracked files and build artifacts
215
214
uses : actions/upload-artifact@v4
216
215
with :
217
- name : vs-artifacts
216
+ name : vs-artifacts-${{ matrix.arch }}
218
217
path : artifacts
219
218
vs-test :
220
219
name : win+VS test
@@ -232,7 +231,7 @@ jobs:
232
231
- name : download tracked files and build artifacts
233
232
uses : actions/download-artifact@v4
234
233
with :
235
- name : vs-artifacts
234
+ name : vs-artifacts-x64
236
235
path : ${{github.workspace}}
237
236
- name : extract tracked files and build artifacts
238
237
shell : bash
0 commit comments