Skip to content

Commit cb5072c

Browse files
authored
feat: Use ldext in build-test.sh (#26082)
* feat: Use ldext in build-test.sh * feat: use env vars * feat: re-add ./... to go-test-compile * chore: update cross-builder tag * chore: change cross builder tag to deb10f07f31767ee55b0b5f87edd34635673cf41 * chore: use latest instead of tag * feat: run ci * feat: typo in build-tests.sh
1 parent d8dc764 commit cb5072c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ orbs:
77
parameters:
88
cross-container-tag:
99
type: string
10-
default: go1.23.5-ba67b11de54aa0bf8f1f92a81f786205de8024b6
10+
default: go1.23.5-latest
1111

1212
workflow:
1313
type: string

scripts/ci/build-tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ function build_mac () {
2929
}
3030

3131
function build_windows () {
32-
CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32" \
33-
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) CC="$(xcc windows)" go-test-compile \
34-
-tags sqlite_foreign_keys,sqlite_json,timetzdata -o "${1}/" -x ./...
32+
export CC="$(xcc windows)"
33+
export CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32"
34+
35+
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) go-test-compile \
36+
-tags sqlite_foreign_keys,sqlite_json,timetzdata \
37+
-ldext "${CC}" -o "${1}/" ./...
3538
}
3639

3740
function build_test_tools () {

0 commit comments

Comments
 (0)