feat: update crossbuilder to tagged version and update go linker (#26064)

* feat: update crossbuilder and ldflags for go

* feat: Update build_windows for build-tests script
this includes a CGO_LDFLAGS env var when running go-test-compile
pull/26080/head
WeblWabl 2025-02-26 15:55:07 -06:00 committed by GitHub
parent 248022800a
commit 4689f21687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ orbs:
parameters:
cross-container-tag:
type: string
default: go1.23.5-latest
default: go1.23.5-ba67b11de54aa0bf8f1f92a81f786205de8024b6
workflow:
type: string

View File

@ -29,6 +29,7 @@ function build_mac () {
}
function build_windows () {
CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32" \
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) CC="$(xcc windows)" go-test-compile \
-tags sqlite_foreign_keys,sqlite_json,timetzdata -o "${1}/" -x ./...
}

View File

@ -47,6 +47,7 @@ function main () {
"$pkg"
;;
windows_amd64)
export CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32 ${CGO_LDFLAGS}"
export CC="$(xcc windows)"
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) go build \
-tags assets,sqlite_foreign_keys,sqlite_json,timetzdata \