19 lines
850 B
TOML
19 lines
850 B
TOML
# Cross config
|
|
[target.aarch64-unknown-linux-musl]
|
|
pre-build = [
|
|
"apt-get update && apt-get install --assume-yes wget && wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz -O /go.tar.gz && tar -C /usr/local -xzf /go.tar.gz && echo \"export PATH=$PATH:/usr/local/go/bin\" >> /etc/profile && touch /go-installed",
|
|
]
|
|
|
|
[target.aarch64-unknown-linux-musl.env]
|
|
volumes = []
|
|
passthrough = ["GOPATH=/tmp/gopath", "GOCACHE=/tmp/gocache"]
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
pre-build = [
|
|
"apt-get update && apt-get install --assume-yes wget && wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz -O /go.tar.gz && tar -C /usr/local -xzf /go.tar.gz && echo \"export PATH=$PATH:/usr/local/go/bin\" >> /etc/profile && touch /go-installed",
|
|
]
|
|
|
|
[target.x86_64-unknown-linux-musl.env]
|
|
volumes = []
|
|
passthrough = ["GOPATH=/tmp/gopath", "GOCACHE=/tmp/gocache"]
|