Skip to content

Commit e821eb5

Browse files
committed
build-and-deploy: set MINGW_ARCH appropriately for i686/x86_64 builds
In the future, we want to build the packages in the appropriate git-sdk for the given CPU architecture. Right now, we still build i686/x86_64 MINGW packages in git-sdk-64. Let's respect the `ARCHITECTURE` environment variable (which is left empty in the current workflow runs that want to build i686/x86_64 MINGW packages), and set `MINGW_ARCH` appropriately when the `ARCHITECTURE` is set to `i686` or `x86_64` (which we will do in the future). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7c90eb1 commit e821eb5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,12 @@ jobs:
241241
MINGW_ARCHS_TO_BUILD=$(
242242
case "$ARCHITECTURE,$PACKAGE_TO_BUILD" in
243243
aarch64,*) echo "clangarm64";;
244-
*,mingw-w64-wintoast) echo "mingw32 mingw64 clangarm64";; # We're (cross-)compiling via Visual Studio
245-
*,mingw-w64-git-credential-manager) echo "mingw32 mingw64 clangarm64";; # We're downloading the pre-built x86 artifacts and using them for all three platforms
246-
*,mingw-w64-git-lfs) echo "mingw32 mingw64 clangarm64";; # We're downloading the pre-built artifacts from Git LFS' official release page
247-
*) echo "mingw32 mingw64";;
244+
x86_64,*) echo "mingw64";;
245+
i686,*) echo "mingw32";;
246+
,mingw-w64-wintoast) echo "mingw32 mingw64 clangarm64";; # We're (cross-)compiling via Visual Studio
247+
,mingw-w64-git-credential-manager) echo "mingw32 mingw64 clangarm64";; # We're downloading the pre-built x86 artifacts and using them for all three platforms
248+
,mingw-w64-git-lfs) echo "mingw32 mingw64 clangarm64";; # We're downloading the pre-built artifacts from Git LFS' official release page
249+
,*) echo "mingw32 mingw64";;
248250
esac
249251
)
250252

0 commit comments

Comments
 (0)