File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,18 +85,14 @@ jobs:
8585
8686 LDFLAGS="-X main.version=${VERSION}"
8787
88- # Define target platforms
89- declare -A TARGETS=(
90- ["darwin-amd64"]="darwin/amd64"
91- ["darwin-arm64"]="darwin/arm64"
92- ["linux-amd64"]="linux/amd64"
93- ["linux-arm64"]="linux/arm64"
94- ["windows-amd64"]="windows/amd64"
95- ["windows-arm64"]="windows/arm64"
96- )
97-
98- for NAME in "${!TARGETS[@]}"; do
99- IFS='/' read -r GOOS GOARCH <<< "${TARGETS[$NAME]}"
88+ # Define target platforms (bash 3 compatible — macOS default)
89+ TARGETS="darwin-amd64:darwin/amd64 darwin-arm64:darwin/arm64 linux-amd64:linux/amd64 linux-arm64:linux/arm64 windows-amd64:windows/amd64 windows-arm64:windows/arm64"
90+
91+ for TARGET in $TARGETS; do
92+ NAME="${TARGET%%:*}"
93+ PAIR="${TARGET##*:}"
94+ GOOS="${PAIR%/*}"
95+ GOARCH="${PAIR#*/}"
10096 EXT=""
10197 [ "$GOOS" = "windows" ] && EXT=".exe"
10298
You can’t perform that action at this time.
0 commit comments