From 3fb522caff7f599914f818d949bc9e36e8a0a7b6 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Fri, 25 Mar 2022 12:40:30 -0400 Subject: [PATCH] ci: test non-cgo packages in 32-bit mode This commit runs Gio's test harness in 32-bit mode as well as 64-bit. This helps catch bugs in Gio and its dependencies where integer overflow causes build or runtime problems. The complexities of cross-compiling CGO made it prohibitively difficult to test all of Gio, so these changes only run tests for packages in pure Go. References: https://todo.sr.ht/~eliasnaur/gio/384 Signed-off-by: Chris Waldon --- .builds/linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.builds/linux.yml b/.builds/linux.yml index 7d84a4bc..b17dd941 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -57,6 +57,7 @@ tasks: - test_gio: | cd gio go test -race ./... + CGO_ENABLED=1 GOARCH=386 go test ./{f32,font,gesture,io,layout,op,text,unit,widget}/... GOOS=windows go test -exec=wine ./... GOOS=js GOARCH=wasm go build -o /dev/null ./... - install_chrome: |