Files
Clement Tsang 7f3bcc66fa ci: build FreeBSD and NetBSD binaries using cross (#1986)
* ci: build FreeBSD and NetBSD using cross

* hmmm

* try another cross version?

* add netbsd Cross.toml config

* hmmmm

* hmmmmm

* hmmmmmm

* try this

* add todo

* add another todo
2026-02-27 01:12:14 +00:00

8 lines
618 B
TOML

[build.env]
passthrough = ["RUST_BACKTRACE", "BTM_GENERATE"]
[target.x86_64-unknown-netbsd]
pre-build = [
"apt-get update && apt-get install -y --no-install-recommends curl xz-utils && 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\"",
]