@@ -164,6 +164,9 @@ jobs:
164
164
NO_PERL : 1
165
165
GIT_CONFIG_PARAMETERS : " 'user.name=CI' 'user.email=ci@git'"
166
166
runs-on : windows-latest
167
+ strategy :
168
+ matrix :
169
+ arch : [x64, arm64]
167
170
steps :
168
171
- uses : actions/checkout@v1
169
172
- name : download git-sdk-64-minimal
@@ -182,6 +185,7 @@ jobs:
182
185
unzip artifacts.zip
183
186
rm artifacts.zip
184
187
- name : download vcpkg artifacts
188
+ if : matrix.arch == 'x64'
185
189
shell : powershell
186
190
run : |
187
191
$urlbase = "https://dev.azure.com/git/git/_apis/build/builds"
@@ -190,20 +194,23 @@ jobs:
190
194
(New-Object Net.WebClient).DownloadFile($downloadUrl, "compat.zip")
191
195
Expand-Archive compat.zip -DestinationPath . -Force
192
196
Remove-Item compat.zip
197
+ - name : install vcpkg deps for arm64
198
+ if : matrix.arch == 'arm64'
199
+ run : .\compat\vcbuild\vcpkg_install.bat arm64-windows
193
200
- name : add msbuild to PATH
194
201
uses : microsoft/setup-msbuild@v1
195
202
- name : copy dlls to root
196
203
shell : powershell
197
204
run : |
198
- & compat\vcbuild\vcpkg_copy_dlls.bat release
205
+ & compat\vcbuild\vcpkg_copy_dlls.bat release ${{ matrix.arch }}-windows
199
206
if (!$?) { exit(1) }
200
207
- name : generate Visual Studio solution
201
208
shell : bash
202
209
run : |
203
- cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64 -windows \
204
- -DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
210
+ cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }} -windows \
211
+ -DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows
205
212
- name : MSBuild
206
- run : msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142
213
+ run : msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
207
214
- name : bundle artifact tar
208
215
shell : powershell
209
216
env :
@@ -217,7 +224,7 @@ jobs:
217
224
- name : upload build artifacts
218
225
uses : actions/upload-artifact@v1
219
226
with :
220
- name : vs-artifacts
227
+ name : vs-artifacts-${{ matrix.arch }}
221
228
path : artifacts
222
229
vs-test :
223
230
runs-on : windows-latest
@@ -235,7 +242,7 @@ jobs:
235
242
- name : download build artifacts
236
243
uses : actions/download-artifact@v1
237
244
with :
238
- name : vs-artifacts
245
+ name : vs-artifacts-x64
239
246
path : ${{github.workspace}}
240
247
- name : extract build artifacts
241
248
shell : bash
0 commit comments