-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCross.toml
More file actions
18 lines (17 loc) · 753 Bytes
/
Cross.toml
File metadata and controls
18 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[target.aarch64-unknown-linux-gnu]
# Needed for deps that rely on `native-tls` / `openssl-sys` when cross compiling.
# Without this, the release workflow fails when building the linux/arm64 binary.
pre-build = [
"dpkg --add-architecture arm64",
"apt-get update",
"apt-get install -y --no-install-recommends pkg-config libssl-dev:arm64 ca-certificates",
"rm -rf /var/lib/apt/lists/*",
]
[target.x86_64-unknown-linux-gnu]
# Needed for deps that rely on `native-tls` / `openssl-sys` when building with `cross`.
# Without this, the release workflow fails when building the linux/amd64 binary.
pre-build = [
"apt-get update",
"apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates",
"rm -rf /var/lib/apt/lists/*",
]