Reduce supported platform matrix

This commit is contained in:
2026-09-07 03:28:50 +00:00
parent 1558c9ccae
commit f8e3e651e6
26 changed files with 32 additions and 387 deletions

View File

@@ -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