Skip to content

Commit c6c9fed

Browse files
authored
Merge pull request #1109 from coreydaley/add_windows_arm64
adding windows/arm64
2 parents 94a6945 + 1ce74ba commit c6c9fed

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hack/common.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ readonly S2I_GO_PACKAGE=github.com/openshift/source-to-image
2828
readonly S2I_GOPATH="${S2I_OUTPUT}/go"
2929

3030
readonly S2I_CROSS_COMPILE_PLATFORMS=(
31-
linux/amd64
3231
darwin/amd64
33-
windows/amd64
32+
darwin/arm64
3433
linux/386
34+
linux/amd64
35+
linux/arm64
3536
linux/ppc64le
3637
linux/s390x
37-
linux/arm64
38-
darwin/arm64
38+
windows/amd64
39+
windows/arm64
3940
)
4041
readonly S2I_CROSS_COMPILE_TARGETS=(
4142
cmd/s2i
@@ -268,7 +269,7 @@ s2i::build::place_bins() {
268269
local -a binaries=()
269270
for binary in "${targets[@]}"; do
270271
binary=$(basename $binary)
271-
if [[ $platform == "windows/amd64" ]]; then
272+
if [[ $platform =~ ^windows ]]; then
272273
binaries+=("${binary}.exe")
273274
else
274275
binaries+=("${binary}")

0 commit comments

Comments
 (0)