-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCross.toml
48 lines (45 loc) · 2.08 KB
/
Cross.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[target.x86_64-unknown-linux-musl]
pre-build = [
"apt-get update",
"apt-get install -y unzip",
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\";curl -LO $PB_REL/download/v28.2/protoc-28.2-linux-x86_64.zip",
"unzip protoc-28.2-linux-x86_64.zip -d /opt/.local",
"export PATH=\"$PATH:/opt/.local/bin\";chmod +x /opt/.local/bin/protoc",
"protoc --version;export PROTOC=/opt/.local/bin/protoc",
]
[target.x86_64-unknown-linux-musl.env]
passthrough = ["PROTOC=/opt/.local/bin/protoc"]
[target.aarch64-unknown-linux-musl]
pre-build = [
"apt-get update",
"apt-get install -y unzip clang",
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\";curl -LO $PB_REL/download/v28.2/protoc-28.2-linux-x86_64.zip",
"unzip protoc-28.2-linux-x86_64.zip -d /opt/.local",
"export PATH=\"$PATH:/opt/.local/bin\";chmod +x /opt/.local/bin/protoc",
"protoc --version;export PROTOC=/opt/.local/bin/protoc",
]
[target.aarch64-unknown-linux-musl.env]
passthrough = ["PROTOC=/opt/.local/bin/protoc"]
[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update",
"apt-get install -y unzip clang",
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\";curl -LO $PB_REL/download/v28.2/protoc-28.2-linux-x86_64.zip",
"unzip protoc-28.2-linux-x86_64.zip -d /opt/.local",
"export PATH=\"$PATH:/opt/.local/bin\";chmod +x /opt/.local/bin/protoc",
"protoc --version;export PROTOC=/opt/.local/bin/protoc",
]
[target.x86_64-unknown-linux-gnu.env]
passthrough = ["PROTOC=/opt/.local/bin/protoc"]
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture armhf",
"apt-get update",
"apt-get install -y unzip clang",
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\";curl -LO $PB_REL/download/v28.2/protoc-28.2-linux-x86_64.zip",
"unzip protoc-28.2-linux-x86_64.zip -d /opt/.local",
"export PATH=\"$PATH:/opt/.local/bin\";chmod +x /opt/.local/bin/protoc",
"protoc --version;export PROTOC=/opt/.local/bin/protoc",
]
[target.aarch64-unknown-linux-gnu.env]
passthrough = ["PROTOC=/opt/.local/bin/protoc"]