File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 17
17
description : ' The ref containing the package definition'
18
18
required : true
19
19
architecture :
20
- description : ' The architecture to build for (only for MSYS packages)'
20
+ description : ' The architecture to build for (only for MSYS packages and all arm64 builds )'
21
21
required : false
22
22
actor :
23
23
description : The GitHub user on whose behalf this workflow is run
37
37
38
38
jobs :
39
39
build :
40
- runs-on : windows-latest
40
+ runs-on : ${{ github.event.inputs.architecture == 'aarch64' && fromJSON('["Windows", "ARM64"]') || ' windows-latest' }}
41
41
steps :
42
42
- uses : actions/checkout@v3
43
43
@@ -135,6 +135,8 @@ jobs:
135
135
flavor : ${{ env.PACKAGE_TO_BUILD == 'mingw-w64-git' && 'build-installers' || 'full' }}
136
136
architecture : ${{ env.ARCHITECTURE || 'x86_64' }}
137
137
msys : ${{ env.REPO == 'MSYS2-packages' || env.PACKAGE_TO_BUILD == 'git-for-windows-keyring' }}
138
+ # We only have to clean up on self-hosted runners
139
+ cleanup : ${{ runner.arch == 'ARM64' && true || false }}
138
140
139
141
- name : Clone ${{ env.REPO }}
140
142
shell : bash
@@ -209,8 +211,10 @@ jobs:
209
211
printf '#!/bin/sh\n\nexec /mingw64/bin/git.exe "$@"\n' >/usr/bin/git
210
212
} &&
211
213
214
+ MINGW_ARCHS_TO_BUILD=$(test "${{ env.ARCHITECTURE }}" == "aarch64" && echo "clangarm64" || echo "mingw32 mingw64")
215
+
212
216
cd "/usr/src/$REPO/$PACKAGE_TO_BUILD" &&
213
- MAKEFLAGS=-j6 PKGEXT='.pkg.tar.xz' MINGW_ARCH="mingw32 mingw64" $MAKEPKG -s --noconfirm &&
217
+ MAKEFLAGS=-j6 PKGEXT='.pkg.tar.xz' MINGW_ARCH=$MINGW_ARCHS_TO_BUILD $MAKEPKG -s --noconfirm &&
214
218
cp *.pkg.tar* "$dir/" &&
215
219
216
220
MAKEFLAGS=-j6 SRCEXT='.src.tar.gz' MINGW_ARCH=mingw64 $MAKEPKG --allsource &&
You can’t perform that action at this time.
0 commit comments