From: George Sapkin Date: Thu, 7 May 2026 18:24:34 +0000 (+0300) Subject: golang: add a simple compilation test X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d9fdda8cf268e05fe7b1c30849ab8a4d5cae96af;p=openwrt-packages.git golang: add a simple compilation test Add a simple CI compilation test to ensure that the Go toolchain is functional. Signed-off-by: George Sapkin --- diff --git a/lang/golang/golang1.26/test.sh b/lang/golang/golang1.26/test.sh index 09d3e3fca..023f3659d 100755 --- a/lang/golang/golang1.26/test.sh +++ b/lang/golang/golang1.26/test.sh @@ -7,3 +7,17 @@ case "$1" in esac go version | grep -F " go$PKG_VERSION " + +cat <<'EOF' > hello.go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} + +EOF + +go run hello.go +rm hello.go