Skip to content

Commit 5d260e1

Browse files
committed
git-artifacts: fix BUILD_ONLY handling for ARM64
The workflow allows users to restrict what parts are being built. For example, `installer-i686` will build only the 32-bit installer, not the 64-bit one nor any MinGit flavor. However, this logic was not extended when introducing support for ARM64: Instead, we _also_ built the ARM64 installer when the user asked for `installer-i686`. Let's allow restricting to `installer-i686` _without_ building the ARM64 version, and allow restricting to `installer-arm64` _just_ for the ARM64 version. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent eaf3671 commit 5d260e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/git-artifacts.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,14 @@ jobs:
338338
- name: Determine whether this job should be skipped
339339
shell: bash
340340
run: |
341+
suffix=${{matrix.arch.name}}
342+
if test true = ${{matrix.arch.arm64}}
343+
then
344+
suffix=arm64
345+
fi
341346
case " $BUILD_ONLY " in
342347
' ') ;; # not set; build all
343-
*" ${{matrix.artifact.name}} "*|*" ${{matrix.artifact.name}}-${{matrix.arch.name}} "*) ;; # build this artifact
348+
*" ${{matrix.artifact.name}} "*|*" ${{matrix.artifact.name}}-$suffix "*) ;; # build this artifact
344349
*) echo "SKIP=true" >>$GITHUB_ENV;;
345350
esac
346351
- name: Download pkg-${{matrix.arch.name}}

0 commit comments

Comments
 (0)