Use the host target for source-built release tools

This commit is contained in:
2026-11-04 00:49:59 +00:00
parent 8e897d7b3e
commit 10028c4abb
5 changed files with 23 additions and 4 deletions

View File

@@ -30,6 +30,9 @@ steps:
trap 'rm -rf "$${bootstrap_dir}"' EXIT
export GOWORK=off
export GOTOOLCHAIN=local
releasekit_host_os=$(go env GOHOSTOS) || exit $?
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
export GOOS="$${releasekit_host_os}" GOARCH="$${releasekit_host_arch}"
go build -mod=readonly -o "$${bootstrap_dir}/releasekit" ./cmd/releasekit
"$${bootstrap_dir}/releasekit" ci-deliver \
--repo "$${CI_WORKSPACE}" \