-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCross.toml
More file actions
62 lines (56 loc) · 3.61 KB
/
Cross.toml
File metadata and controls
62 lines (56 loc) · 3.61 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[build]
# Install system dependencies common to all Linux targets (Debian/Ubuntu-based images).
# These are needed for:
# keyring sync-secret-service → libdbus-1-dev (D-Bus headers)
# git2 HTTPS → cmake, build-essential (OpenSSL compiled from source via vendored-openssl feature)
# zstd-sys → cmake (compiles from source; ZSTD_SYS_USE_PKG_CONFIG must NOT be set)
pre-build = [
"apt-get update -qq && apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || apk add --no-cache cmake build-base dbus-dev openssl-dev zstd-dev pkgconf 2>&1 || true",
]
# ── Environment variables passed into every cross container ───────────────────
[build.env]
passthrough = [
"HALCON_GIT_HASH",
"HALCON_BUILD_DATE",
"HALCON_BUILD_DATE_OVERRIDE",
"ORT_STRATEGY",
"ORT_USE_CUDA",
"LIBGIT2_SYS_USE_PKG_CONFIG",
"LIBGIT2_STATIC",
# Allow pkg-config in cross-compilation mode (needed for libdbus-sys on musl)
"PKG_CONFIG_ALLOW_CROSS",
# ZSTD_SYS_USE_PKG_CONFIG intentionally absent: zstd-sys treats any value
# (including "0") as "use pkg-config" via is_ok(). Leaving it unset causes
# zstd-sys to compile from source, which works in all cross containers.
]
# ── Linux x86_64 static (musl) ────────────────────────────────────────────────
# musl cross image is Alpine-based → uses apk; OpenSSL compiled via vendored-openssl feature.
[target.x86_64-unknown-linux-musl]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-musl:main"
pre-build = [
"apk add --no-cache cmake build-base dbus-dev openssl-dev zstd-dev pkgconf 2>&1 || apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || true",
]
# ── Linux x86_64 dynamic (glibc) ─────────────────────────────────────────────
[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main"
pre-build = [
"apt-get update -qq && apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || true",
]
# ── Linux ARM64 dynamic (glibc) ───────────────────────────────────────────────
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
pre-build = [
"apt-get update -qq && apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || true",
]
# ── Linux ARM64 static (musl) ─────────────────────────────────────────────────
[target.aarch64-unknown-linux-musl]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-musl:main"
pre-build = [
"apk add --no-cache cmake build-base dbus-dev openssl-dev zstd-dev pkgconf 2>&1 || apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || true",
]
# ── Linux ARMv7 static (musl) ─────────────────────────────────────────────────
[target.armv7-unknown-linux-musleabihf]
image = "ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main"
pre-build = [
"apk add --no-cache cmake build-base dbus-dev openssl-dev zstd-dev pkgconf 2>&1 || apt-get install -y -qq cmake build-essential libdbus-1-dev libssl-dev libzstd-dev pkg-config 2>&1 || true",
]