@@ -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"
@@ -195,16 +199,16 @@ jobs:
195
199
- name : copy dlls to root
196
200
shell : powershell
197
201
run : |
198
- & compat\vcbuild\vcpkg_copy_dlls.bat release
202
+ & compat\vcbuild\vcpkg_copy_dlls.bat release ${{ matrix.arch }}-windows
199
203
if (!$?) { exit(1) }
200
204
- name : generate Visual Studio solution
201
205
shell : bash
202
206
run : |
203
- cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64 -windows \
204
- -DIconv_LIBRARY=`pwd`/compat/vcbuild/vcpkg/installed/x64 -windows/lib/libiconv.lib -DIconv_INCLUDE_DIR=`pwd`/compat/vcbuild/vcpkg/installed/x64 -windows/include \
205
- -DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
207
+ cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }} -windows \
208
+ -DIconv_LIBRARY=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }} -windows/lib/libiconv.lib -DIconv_INCLUDE_DIR=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }} -windows/include \
209
+ -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
206
210
- name : MSBuild
207
- run : msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142
211
+ run : msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
208
212
- name : bundle artifact tar
209
213
shell : powershell
210
214
env :
@@ -218,7 +222,7 @@ jobs:
218
222
- name : upload build artifacts
219
223
uses : actions/upload-artifact@v1
220
224
with :
221
- name : vs-artifacts
225
+ name : vs-artifacts-${{ matrix.arch }}
222
226
path : artifacts
223
227
vs-test :
224
228
runs-on : windows-latest
@@ -236,7 +240,7 @@ jobs:
236
240
- name : download build artifacts
237
241
uses : actions/download-artifact@v1
238
242
with :
239
- name : vs-artifacts
243
+ name : vs-artifacts-x64
240
244
path : ${{github.workspace}}
241
245
- name : extract build artifacts
242
246
shell : bash
0 commit comments