You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/script/crossbuild.txtar

25 lines
560 B
Plaintext

# We always build for a foreign GOOS.
# GOOS=windows, unless the host is also windows; then linux.
# GOARCH=arm, unless the host is also arm; then amd64.
# Windows and ARM are both interesting,
# and it helps with coverage as we mainly test on linux/amd64.
[!windows] env GOOS=windows
[windows] env GOOS=linux
[!arm] env GOARCH=arm
[arm] env GOARCH=arm64
# A fairly average Go build, importing some std libraries.
garble build
-- go.mod --
module test/main
go 1.19
-- main.go --
package main
import "net/http"
func main() {
http.ListenAndServe("", nil)
}