@@ -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,7 +245,7 @@ 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
@@ -240,7 +256,7 @@ jobs:
240
256
;;
241
257
*)
242
258
./please.sh create-sdk-artifact \
243
- --bitness =${{ matrix.bitness }} \
259
+ --architecture =${{ matrix.arch.name }} \
244
260
--sdk=.sdk \
245
261
--out=sdk-artifact \
246
262
${{ matrix.artifact }}
@@ -249,34 +265,35 @@ jobs:
249
265
echo "git-version=$(sdk-artifact/cmd/git.exe version)" >>$GITHUB_OUTPUT &&
250
266
cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
251
267
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
268
+ cygpath -aw "$PWD/sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin" >>$GITHUB_PATH &&
269
+ echo "MSYSTEM=${{ matrix.arch.msystem }}" >>$GITHUB_ENV &&
270
+ cat $GITHUB_PATH
254
271
- name : build installer
255
272
if : matrix.artifact == 'build-installers'
256
273
shell : bash
257
- run : ./installer/release.sh --include-self-check --output=$PWD/installer-${{ matrix.bitness }} 0-test
274
+ run : ./installer/release.sh --include-self-check --output=$PWD/installer-${{ matrix.arch.name }} 0-test
258
275
- uses : actions/upload-artifact@v4
259
276
if : matrix.artifact == 'build-installers'
260
277
with :
261
- name : installer-${{ matrix.bitness }}
262
- path : installer-${{ matrix.bitness }}
278
+ name : installer-${{ matrix.arch.name }}
279
+ path : installer-${{ matrix.arch.name }}
263
280
- name : run the installer
264
281
if : matrix.artifact == 'build-installers'
265
282
shell : pwsh
266
283
run : |
267
- $exePath = Get-ChildItem -Path installer-${{ matrix.bitness }}/*.exe | %{$_.FullName}
284
+ $exePath = Get-ChildItem -Path installer-${{ matrix.arch.name }}/*.exe | %{$_.FullName}
268
285
$installer = Start-Process -PassThru -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /ALLOWDOWNGRADE=1 /ALLOWINSTALLING32ON64=1 /LOG=installer.log"
269
286
$exitCode = $installer.ExitCode
270
287
if ($exitCode -ne 0) {
271
288
Write-Host "::error::Installer failed with exit code $exitCode!"
272
289
exit 1
273
290
}
274
- if ("${{ matrix.bitness }}" -eq 32 ) {
291
+ if ("${{ matrix.arch.name }}" -eq "i686" ) {
275
292
"${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
293
+ "${env:ProgramFiles(x86)}\Git\${{ matrix.arch.mingw-prefix }} \bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
277
294
} else {
278
295
"$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
296
+ "$env:ProgramFiles\Git\${{ matrix.arch.mingw-prefix }}\bin" | Out-File -Encoding ascii -Append $env:GITHUB_PATH
280
297
}
281
298
- name : show installer log
282
299
# run this even if the installation failed (actually, _in particular_ when the installation failed)
0 commit comments