@@ -129,7 +129,7 @@ jobs:
129
129
shell : bash
130
130
run : |
131
131
./please.sh create-sdk-artifact \
132
- --bitness=64 \
132
+ --architecture=x86_64 \
133
133
--sdk=.sdk \
134
134
--out=sdk-artifact \
135
135
build-installers &&
@@ -213,12 +213,28 @@ jobs:
213
213
fail-fast : false
214
214
matrix :
215
215
artifact : ['minimal', 'makepkg-git', 'build-installers', 'full']
216
- bitness : ['32', '64']
216
+ arch :
217
+ - name : i686
218
+ mingw-prefix : mingw32
219
+ msystem : MINGW32
220
+ sdk-repo : git-sdk-32
221
+ - name : x86_64
222
+ mingw-prefix : mingw64
223
+ msystem : MINGW64
224
+ sdk-repo : git-sdk-64
217
225
exclude :
218
226
- artifact : minimal
219
- bitness : 32
227
+ arch :
228
+ name : i686
229
+ mingw-prefix : mingw32
230
+ msystem : MINGW32
231
+ sdk-repo : git-sdk-32
220
232
- artifact : makepkg-git
221
- bitness : 32
233
+ arch :
234
+ name : i686
235
+ mingw-prefix : mingw32
236
+ msystem : MINGW32
237
+ sdk-repo : git-sdk-32
222
238
steps :
223
239
- uses : actions/checkout@v4
224
240
- name : initialize bare SDK clone
@@ -229,54 +245,58 @@ jobs:
229
245
*) partial=--filter=blob:none;;
230
246
esac &&
231
247
git clone --bare --depth=1 --single-branch --branch=main $partial \
232
- https://github.com/git-for-windows/git-sdk- ${{ matrix.bitness }} .sdk
248
+ https://github.com/git-for-windows/${{ matrix.arch.sdk-repo }} .sdk
233
249
- name : build ${{ matrix.artifact }} artifact
234
250
id : build-artifact
235
251
shell : bash
236
252
run : |
253
+ set -x &&
237
254
case "${{ matrix.artifact }}" in
238
255
full)
239
256
git --git-dir=.sdk worktree add --detach sdk-artifact
240
257
;;
241
258
*)
242
259
./please.sh create-sdk-artifact \
243
- --bitness =${{ matrix.bitness }} \
260
+ --architecture =${{ matrix.arch.name }} \
244
261
--sdk=.sdk \
245
262
--out=sdk-artifact \
246
263
${{ matrix.artifact }}
247
264
;;
248
265
esac &&
249
- echo "git-version=$(sdk-artifact/cmd/git.exe version)" >>$GITHUB_OUTPUT &&
266
+ ls -la sdk-artifact/ &&
267
+ version="$(sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin/git.exe version)" &&
268
+ echo "git-version=$version" >>$GITHUB_OUTPUT &&
250
269
cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
251
270
cygpath -aw "$PWD/sdk-artifact/usr/bin" >>$GITHUB_PATH &&
252
- cygpath -aw "$PWD/sdk-artifact/mingw${{ matrix.bitness }}/bin" >>$GITHUB_PATH &&
253
- echo "MSYSTEM=MINGW${{ matrix.bitness }}" >>$GITHUB_ENV
271
+ cygpath -aw "$PWD/sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin" >>$GITHUB_PATH &&
272
+ echo "MSYSTEM=${{ matrix.arch.msystem }}" >>$GITHUB_ENV &&
273
+ cat $GITHUB_PATH
254
274
- name : build installer
255
275
if : matrix.artifact == 'build-installers'
256
276
shell : bash
257
- run : ./installer/release.sh --include-self-check --output=$PWD/installer-${{ matrix.bitness }} 0-test
277
+ run : ./installer/release.sh --include-self-check --output=$PWD/installer-${{ matrix.arch.name }} 0-test
258
278
- uses : actions/upload-artifact@v4
259
279
if : matrix.artifact == 'build-installers'
260
280
with :
261
- name : installer-${{ matrix.bitness }}
262
- path : installer-${{ matrix.bitness }}
281
+ name : installer-${{ matrix.arch.name }}
282
+ path : installer-${{ matrix.arch.name }}
263
283
- name : run the installer
264
284
if : matrix.artifact == 'build-installers'
265
285
shell : pwsh
266
286
run : |
267
- $exePath = Get-ChildItem -Path installer-${{ matrix.bitness }}/*.exe | %{$_.FullName}
287
+ $exePath = Get-ChildItem -Path installer-${{ matrix.arch.name }}/*.exe | %{$_.FullName}
268
288
$installer = Start-Process -PassThru -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /ALLOWDOWNGRADE=1 /ALLOWINSTALLING32ON64=1 /LOG=installer.log"
269
289
$exitCode = $installer.ExitCode
270
290
if ($exitCode -ne 0) {
271
291
Write-Host "::error::Installer failed with exit code $exitCode!"
272
292
exit 1
273
293
}
274
- if ("${{ matrix.bitness }}" -eq 32 ) {
294
+ if ("${{ matrix.arch.name }}" -eq "i686" ) {
275
295
"${env:ProgramFiles(x86)}\Git\usr\bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
276
- "${env:ProgramFiles(x86)}\Git\mingw32 \bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
296
+ "${env:ProgramFiles(x86)}\Git\${{ matrix.arch.mingw-prefix }} \bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
277
297
} else {
278
298
"$env:ProgramFiles\Git\usr\bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
279
- "$env:ProgramFiles\Git\mingw ${{ matrix.bitness }}\bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
299
+ "$env:ProgramFiles\Git\${{ matrix.arch.mingw-prefix }}\bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
280
300
}
281
301
- name : show installer log
282
302
# run this even if the installation failed (actually, _in particular_ when the installation failed)
@@ -306,30 +326,40 @@ jobs:
306
326
strategy :
307
327
fail-fast : false
308
328
matrix :
309
- bitness : ['32', '64']
329
+ arch :
330
+ - name : i686
331
+ mingw-prefix : mingw32
332
+ msystem : MINGW32
333
+ sdk-repo : git-sdk-32
334
+ - name : x86_64
335
+ mingw-prefix : mingw64
336
+ msystem : MINGW64
337
+ sdk-repo : git-sdk-64
310
338
steps :
311
339
- uses : actions/checkout@v4
312
340
- name : initialize bare SDK clone
313
341
shell : bash
314
342
run : |
315
343
git clone --bare --depth=1 --single-branch --branch=main --filter=blob:none \
316
- https://github.com/git-for-windows/git-sdk- ${{ matrix.bitness }} .sdk
317
- - name : build build-installers-${{ matrix.bitness }} artifact
344
+ https://github.com/git-for-windows/${{ matrix.arch.sdk-repo }} .sdk
345
+ - name : build build-installers-${{ matrix.arch.name }} artifact
318
346
shell : bash
319
347
run : |
348
+ set -x &&
320
349
INCLUDE_OBJDUMP=t \
321
350
./please.sh create-sdk-artifact \
322
- --bitness =${{ matrix.bitness }} \
351
+ --architecture =${{ matrix.arch.name }} \
323
352
--sdk=.sdk \
324
353
--out=sdk-artifact \
325
354
build-installers &&
326
355
cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
327
356
cygpath -aw "$PWD/sdk-artifact/usr/bin" >>$GITHUB_PATH &&
328
- cygpath -aw "$PWD/sdk-artifact/mingw${{ matrix.bitness }}/bin" >>$GITHUB_PATH &&
329
- echo "MSYSTEM=MINGW${{ matrix.bitness }}" >>$GITHUB_ENV
357
+ cygpath -aw "$PWD/sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin" >>$GITHUB_PATH &&
358
+ echo "MSYSTEM=${{ matrix.arch.msystem }}" >>$GITHUB_ENV &&
359
+ cat $GITHUB_PATH
330
360
- name : check for missing DLLs
331
361
shell : bash
332
- run : ./check-for-missing-dlls.sh
362
+ run : sh -x ./check-for-missing-dlls.sh
333
363
- name : check for missing DLLs (MinGit)
334
364
shell : bash
335
365
run : MINIMAL_GIT=1 ./check-for-missing-dlls.sh
0 commit comments