-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCross.toml
More file actions
26 lines (24 loc) · 1.01 KB
/
Cross.toml
File metadata and controls
26 lines (24 loc) · 1.01 KB
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
[build.env]
passthrough = [
"GITHUB_ACTIONS",
"GITHUB_REF",
"GITHUB_SHA",
]
# Linux ARM64 cross-compilation setup
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"
pre-build = [
"dpkg --add-architecture arm64",
"apt-get update",
"apt-get install -y pkg-config",
# Install base GTK dependencies
"apt-get install -y libgtk-3-dev:arm64 || echo 'GTK install failed, continuing...'",
# Try to install WebKit - fallback gracefully if it fails
"apt-get install -y libwebkit2gtk-4.1-dev:arm64 || apt-get install -y libwebkit2gtk-4.0-dev:arm64 || echo 'WebKit install failed, using fallback'",
# Install other dependencies with fallbacks
"apt-get install -y libappindicator3-dev:arm64 || echo 'AppIndicator install failed'",
"apt-get install -y librsvg2-dev:arm64 || echo 'RSVG install failed'",
]
[target.aarch64-unknown-linux-gnu.env]
PKG_CONFIG_ALLOW_CROSS = "1"
PKG_CONFIG_PATH = "/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig"