mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-04 10:52:56 +00:00
41 lines
1.7 KiB
TOML
41 lines
1.7 KiB
TOML
# These make sure our builds are compatible with old glibc versions.
|
|
[target.x86_64-unknown-linux-gnu]
|
|
pre-build = [
|
|
# Install newer gfortran
|
|
"yum install -y centos-release-scl",
|
|
"yum install -y openssl-devel unzip devtoolset-11-gcc-gfortran",
|
|
"scl enable devtoolset-11 bash",
|
|
# protobuf is too old, so we directly download binaries
|
|
"PB_REL=https://github.com/protocolbuffers/protobuf/releases",
|
|
"PB_VERSION=23.1",
|
|
"curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-x86_64.zip",
|
|
"unzip protoc-$PB_VERSION-linux-x86_64.zip -d /usr/local",
|
|
]
|
|
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos"
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
pre-build = [
|
|
"yum install -y openssl-devel unzip",
|
|
# protobuf is too old, so we directly download binaries
|
|
"PB_REL=https://github.com/protocolbuffers/protobuf/releases",
|
|
"PB_VERSION=23.1",
|
|
"curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-x86_64.zip",
|
|
"unzip protoc-$PB_VERSION-linux-x86_64.zip -d /usr/local",
|
|
]
|
|
# https://github.com/cross-rs/cross/blob/main/docker/Dockerfile.aarch64-unknown-linux-gnu.centos
|
|
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos"
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
# https://github.com/cross-rs/cross/blob/main/docker/Dockerfile.x86_64-unknown-linux-musl
|
|
pre-build = [
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH",
|
|
]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
# https://github.com/cross-rs/cross/blob/main/docker/Dockerfile.aarch64-unknown-linux-musl
|
|
pre-build = [
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH",
|
|
]
|