1
1
name : git-artifacts
2
- run-name : Build git-artifacts (${{ inputs.architecture }})
2
+ run-name : Build git-artifacts (${{ inputs.artifacts != '' && format('{0} ', inputs.artifacts) || '' }}${{ inputs. architecture }})
3
3
4
4
on :
5
5
workflow_dispatch :
45
45
pkg :
46
46
runs-on : ${{ github.event.inputs.architecture == 'aarch64' && fromJSON('["Windows", "ARM64"]') || 'windows-latest' }}
47
47
outputs :
48
- artifact_matrix : ${{steps.artifact-build-matrix.outputs.matrix }}
48
+ artifact_matrix : ${{ steps.artifact-build-matrix.outputs.result }}
49
49
msystem : ${{steps.configure-environment.outputs.MSYSTEM}}
50
50
mingw_package_prefix : ${{steps.configure-environment.outputs.MINGW_PACKAGE_PREFIX}}
51
51
sdk_repo_arch : ${{steps.configure-environment.outputs.SDK_REPO_ARCH}}
@@ -195,7 +195,7 @@ jobs:
195
195
try {
196
196
const output = createArtifactsMatrix(process.env.ARTIFACTS_TO_BUILD, process.env.ARCHITECTURE)
197
197
core.info(`Will be using the following matrix: ${JSON.stringify(output)}`)
198
- core.setOutput('matrix', output)
198
+ return output
199
199
} catch (e) {
200
200
core.setFailed(e.message)
201
201
}
@@ -268,7 +268,8 @@ jobs:
268
268
echo '${{secrets.PRIVGPGKEY}}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
269
269
info="$(gpg --list-keys --with-colons "${GPGKEY%% *}" | cut -d : -f 1,10 | sed -n '/^uid/{s|uid:||p;q}')" &&
270
270
git config --global user.name "${info% <*}" &&
271
- git config --global user.email "<${info#*<}"
271
+ git config --global user.email "<${info#*<}" &&
272
+ echo "PACKAGER=$info" >>$GITHUB_ENV
272
273
env :
273
274
GPGKEY : ${{secrets.GPGKEY}}
274
275
- name : update check-run
@@ -287,7 +288,10 @@ jobs:
287
288
set -x
288
289
BUILD_SRC=$(test x86_64 != "$ARCHITECTURE" || echo "--build-src-pkg")
289
290
# Make sure that there is a `/usr/bin/git` that can be used by `makepkg-mingw`
290
- printf '#!/bin/sh\n\nexec '$MINGW_PREFIX'/bin/git.exe "$@"\n' >/usr/bin/git &&
291
+ if test ! -x /usr/bin/git
292
+ then
293
+ printf '#!/bin/sh\n\nexec '$MINGW_PREFIX'/bin/git.exe "$@"\n' >/usr/bin/git
294
+ fi &&
291
295
(
292
296
cd /usr/src/MINGW-packages/mingw-w64-git/src/git &&
293
297
/usr/src/build-extra/please.sh build-mingw-w64-git --reset-pkgrel --only-$ARCHITECTURE $BUILD_SRC \
@@ -308,13 +312,14 @@ jobs:
308
312
if test -z "$EXISTING_GIT_TAG"
309
313
then
310
314
git commit -s -m "mingw-w64-git: new version ($version)" PKGBUILD &&
311
- git bundle create "$b"/MINGW-packages.bundle origin/main..main
315
+ git bundle create "$b"/MINGW-packages.bundle origin/main..main
312
316
elif ! git update-index --ignore-submodules --refresh ||
313
317
! git diff-files --ignore-submodules ||
314
318
! git diff-index --cached --ignore-submodules HEAD
315
319
then
316
320
echo "::warning::Uncommitted changes after build!" >&2 &&
317
321
git diff >&2 &&
322
+ git commit -s -m "mingw-w64-git: new version ($version)" PKGBUILD &&
318
323
git bundle create "$b"/MINGW-packages.bundle main^..main
319
324
fi)
320
325
- name : Cache ${{env.MINGW_PACKAGE_PREFIX}}-git
0 commit comments