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.
29 lines
626 B
Plaintext
29 lines
626 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
|
|
|
|
env GOPRIVATE='*'
|
|
|
|
# Link a binary importing net/http, which will catch whether or not we
|
|
# support ImportMap when linking.
|
|
garble build
|
|
|
|
-- go.mod --
|
|
module test/main
|
|
|
|
go 1.17
|
|
-- main.go --
|
|
package main
|
|
|
|
import "net/http"
|
|
|
|
func main() {
|
|
http.ListenAndServe("", nil)
|
|
}
|