Skip to content

Commit 387824d

Browse files
committed
Accelerate building mingw-w64-git by using a smaller Git for Windows SDK
Theoretically, we would want to use the `makepkg-git` flavor, but that flavor does not provide a functional `dirmngr.exe` and therefore receiving GPG keys would not work. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent be5109f commit 387824d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- name: Download Git for Windows SDK
123123
uses: git-for-windows/setup-git-for-windows-sdk@v1
124124
with:
125-
flavor: full
125+
flavor: ${{ env.PACKAGE_TO_BUILD == 'mingw-w64-git' && 'build-installers' || 'full' }}
126126

127127
- name: Clone ${{ env.REPO }}
128128
shell: bash
@@ -189,6 +189,12 @@ jobs:
189189
run: |
190190
dir="$(cygpath -au artifacts)" &&
191191
mkdir -p "$dir" &&
192+
193+
{
194+
test -f /usr/bin/git ||
195+
printf '#!/bin/sh\n\nexec /mingw64/bin/git.exe "$@"\n' >/usr/bin/git
196+
} &&
197+
192198
cd "/usr/src/$REPO/$PACKAGE_TO_BUILD" &&
193199
MAKEFLAGS=-j6 PKGEXT='.pkg.tar.xz' MINGW_ARCH="mingw32 mingw64" makepkg-mingw -s --noconfirm &&
194200
cp *.pkg.tar* "$dir/" &&

0 commit comments

Comments
 (0)