mirror of
https://github.com/domcyrus/rustnet.git
synced 2025-12-31 19:09:53 -06:00
- Removed freebsd-x64 from cross-compilation matrix - Added dedicated build-freebsd job using vmactions/freebsd-vm - Builds natively on actual FreeBSD using pkg and native toolchain - Updated test-freebsd workflow to use VM as well - Avoids all cross-compilation sysroot/libpcap issues
22 lines
931 B
TOML
22 lines
931 B
TOML
[target.aarch64-unknown-linux-gnu]
|
|
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"
|
|
pre-build = [
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
"apt-get update -y",
|
|
"apt-get install -y libelf-dev:arm64 zlib1g-dev:arm64 libpcap-dev:arm64 gcc-aarch64-linux-gnu protobuf-compiler libseccomp-dev:arm64 libbpf-dev clang llvm"
|
|
]
|
|
|
|
[target.armv7-unknown-linux-gnueabihf]
|
|
image = "ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:edge"
|
|
pre-build = [
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
"apt-get update -y",
|
|
"apt-get install -y libelf-dev:armhf zlib1g-dev:armhf libpcap-dev:armhf gcc-arm-linux-gnueabihf protobuf-compiler libseccomp-dev:armhf libbpf-dev clang llvm"
|
|
]
|
|
|
|
[target.x86_64-unknown-freebsd]
|
|
# FreeBSD cross-compilation uses a Linux container with FreeBSD sysroot
|
|
# The sysroot should already contain libpcap
|
|
# No pre-build steps needed as we can't run FreeBSD package manager in Linux container
|
|
|