-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCross.toml
25 lines (24 loc) · 1.47 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
# This is the TOML configuration file for cross-rs.
# The cross config docs can be found here: https://github.com/cross-rs/cross/blob/main/docs/config_file.md
[target.aarch64-unknown-linux-gnu]
image.name = "ubuntu:latest"
image.toolchain = ["x86_64-unknown-linux-gnu"]
env.passthrough = [
"PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/",
"PKG_CONFIG_ALLOW_CROSS_aarch64-unknown-linux-gnu=1"
]
# Refer to: https://github.com/cross-rs/cross/issues/751
pre-build = [
"export DEBIAN_FRONTEND=noninteractive",
"sed 's/^deb http/deb [arch=amd64] http/' -i '/etc/apt/sources.list'",
"echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse' >> /etc/apt/sources.list",
"echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list",
"echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse' >> /etc/apt/sources.list",
"echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse' >> /etc/apt/sources.list",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update",
"apt-get install --assume-yes apt-utils",
"apt-get install --assume-yes gcc pkg-config g++-aarch64-linux-gnu libc6-dev-arm64-cross",
"apt-get download libgtk-4-dev:$CROSS_DEB_ARCH libadwaita-1-dev:$CROSS_DEB_ARCH",
"dpkg --force-all -i *.deb",
]