@@ -129,7 +129,7 @@ jobs:
129129 shell : bash
130130 run : |
131131 ./please.sh create-sdk-artifact \
132- --bitness=64 \
132+ --architecture=x86_64 \
133133 --sdk=.sdk \
134134 --out=sdk-artifact \
135135 build-installers &&
@@ -213,12 +213,28 @@ jobs:
213213 fail-fast : false
214214 matrix :
215215 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
217225 exclude :
218226 - artifact : minimal
219- bitness : 32
227+ arch :
228+ name : i686
229+ mingw-prefix : mingw32
230+ msystem : MINGW32
231+ sdk-repo : git-sdk-32
220232 - artifact : makepkg-git
221- bitness : 32
233+ arch :
234+ name : i686
235+ mingw-prefix : mingw32
236+ msystem : MINGW32
237+ sdk-repo : git-sdk-32
222238 steps :
223239 - uses : actions/checkout@v4
224240 - name : initialize bare SDK clone
@@ -229,54 +245,58 @@ jobs:
229245 *) partial=--filter=blob:none;;
230246 esac &&
231247 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
233249 - name : build ${{ matrix.artifact }} artifact
234250 id : build-artifact
235251 shell : bash
236252 run : |
253+ set -x &&
237254 case "${{ matrix.artifact }}" in
238255 full)
239256 git --git-dir=.sdk worktree add --detach sdk-artifact
240257 ;;
241258 *)
242259 ./please.sh create-sdk-artifact \
243- --bitness =${{ matrix.bitness }} \
260+ --architecture =${{ matrix.arch.name }} \
244261 --sdk=.sdk \
245262 --out=sdk-artifact \
246263 ${{ matrix.artifact }}
247264 ;;
248265 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 &&
250269 cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
251270 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
254274 - name : build installer
255275 if : matrix.artifact == 'build-installers'
256276 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
258278 - uses : actions/upload-artifact@v4
259279 if : matrix.artifact == 'build-installers'
260280 with :
261- name : installer-${{ matrix.bitness }}
262- path : installer-${{ matrix.bitness }}
281+ name : installer-${{ matrix.arch.name }}
282+ path : installer-${{ matrix.arch.name }}
263283 - name : run the installer
264284 if : matrix.artifact == 'build-installers'
265285 shell : pwsh
266286 run : |
267- $exePath = Get-ChildItem -Path installer-${{ matrix.bitness }}/*.exe | %{$_.FullName}
287+ $exePath = Get-ChildItem -Path installer-${{ matrix.arch.name }}/*.exe | %{$_.FullName}
268288 $installer = Start-Process -PassThru -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /ALLOWDOWNGRADE=1 /ALLOWINSTALLING32ON64=1 /LOG=installer.log"
269289 $exitCode = $installer.ExitCode
270290 if ($exitCode -ne 0) {
271291 Write-Host "::error::Installer failed with exit code $exitCode!"
272292 exit 1
273293 }
274- if ("${{ matrix.bitness }}" -eq 32 ) {
294+ if ("${{ matrix.arch.name }}" -eq "i686" ) {
275295 "${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
277297 } else {
278298 "$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
280300 }
281301 - name : show installer log
282302 # run this even if the installation failed (actually, _in particular_ when the installation failed)
@@ -306,30 +326,40 @@ jobs:
306326 strategy :
307327 fail-fast : false
308328 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
310338 steps :
311339 - uses : actions/checkout@v4
312340 - name : initialize bare SDK clone
313341 shell : bash
314342 run : |
315343 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
318346 shell : bash
319347 run : |
348+ set -x &&
320349 INCLUDE_OBJDUMP=t \
321350 ./please.sh create-sdk-artifact \
322- --bitness =${{ matrix.bitness }} \
351+ --architecture =${{ matrix.arch.name }} \
323352 --sdk=.sdk \
324353 --out=sdk-artifact \
325354 build-installers &&
326355 cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
327356 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
330360 - name : check for missing DLLs
331361 shell : bash
332- run : ./check-for-missing-dlls.sh
362+ run : sh -x ./check-for-missing-dlls.sh
333363 - name : check for missing DLLs (MinGit)
334364 shell : bash
335365 run : MINIMAL_GIT=1 ./check-for-missing-dlls.sh
0 commit comments