Simplify release candidate validation
This commit is contained in:
@@ -73,7 +73,7 @@ for target in linux/amd64 linux/arm64 darwin/arm64; do
|
||||
target_os=${target%%/*}
|
||||
target_arch=${target#*/}
|
||||
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
|
||||
CGO_ENABLED=0 GOOS="$target_os" GOARCH="$target_arch" go build -mod=readonly -trimpath -ldflags "$build_flags" -o "$asset_path" ./cmd/narratio
|
||||
if [ "$target_os" = "$host_os" ] && [ "$target_arch" = "$host_arch" ]; then
|
||||
host_asset=$asset_path
|
||||
fi
|
||||
@@ -81,7 +81,7 @@ done
|
||||
|
||||
if [ -z "$host_asset" ]; then
|
||||
temporary_smoke_binary="$output_dir/.narratio-release-version-smoke"
|
||||
CGO_ENABLED=0 go build -trimpath -ldflags "$build_flags" -o "$temporary_smoke_binary" ./cmd/narratio
|
||||
CGO_ENABLED=0 go build -mod=readonly -trimpath -ldflags "$build_flags" -o "$temporary_smoke_binary" ./cmd/narratio
|
||||
host_asset=$temporary_smoke_binary
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user