Files
bottom/Cross.toml
T
Clement Tsang 3066c959d0 ci: pin netbsd cross apt install (#2223)
Pins curl and xz-utils versions for the netbsd pre-build script. This pins it to the most recent versions as of writing.

Note: may be worth exploring just making a custom image that has this rather than doing it each time beforehand.
2026-08-28 01:37:26 -04:00

9 lines
699 B
TOML

[build.env]
passthrough = ["RUST_BACKTRACE", "BTM_GENERATE"]
[target.x86_64-unknown-netbsd]
pre-build = [
# Last updated on 2026-08-28
"apt-get update && apt-get install -y --no-install-recommends curl=8.5.0-2ubuntu10.13 xz-utils=5.6.1+really5.4.5-1ubuntu0.3 && td=$(mktemp -d) && mkdir -p \"$td/netbsd\" && curl -4 --retry 3 -sSfL 'http://ftp.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz' | tar -C \"$td/netbsd\" -xJ ./usr/lib ./lib && curl -4 --retry 3 -sSfL 'http://ftp.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/comp.tar.xz' | tar -C \"$td/netbsd\" -xJ ./usr/lib && cp \"$td\"/netbsd/usr/lib/libkvm* /usr/local/x86_64-unknown-netbsd/lib/ && rm -rf \"$td\"",
]