Reduce supported platform matrix
This commit is contained in:
@@ -69,14 +69,10 @@ host_os=$(go env GOOS)
|
||||
host_arch=$(go env GOARCH)
|
||||
host_asset=
|
||||
|
||||
for target in linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64; do
|
||||
for target in linux/amd64 linux/arm64 darwin/arm64; do
|
||||
target_os=${target%%/*}
|
||||
target_arch=${target#*/}
|
||||
suffix=
|
||||
if [ "$target_os" = windows ]; then
|
||||
suffix=.exe
|
||||
fi
|
||||
asset_path="$output_dir/narratio-$release_version-$target_os-$target_arch$suffix"
|
||||
asset_path="$output_dir/narratio-$release_version-$target_os-$target_arch"
|
||||
CGO_ENABLED=0 GOOS="$target_os" GOARCH="$target_arch" go build -trimpath -ldflags "$build_flags" -o "$asset_path" ./cmd/narratio
|
||||
if [ "$target_os" = "$host_os" ] && [ "$target_arch" = "$host_arch" ]; then
|
||||
host_asset=$asset_path
|
||||
|
||||
Reference in New Issue
Block a user