mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-04 19:02:58 +00:00
Compare commits
1 Commits
v0.1.2-dev
...
v0.1.2-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e28488122f |
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -126,18 +126,13 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
- x86_64-unknown-linux-gnu
|
- x86_64-unknown-linux-gnu:centos
|
||||||
# TODO: get release working for these targets
|
- aarch64-unknown-linux-gnu:centos
|
||||||
# - aarch64-unknown-linux-gnu
|
- aarch64-unknown-linux-musl
|
||||||
# - aarch64-unknown-linux-musl
|
- x86_64-unknown-linux-musl
|
||||||
# - x86_64-unknown-linux-musl
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup Rust
|
|
||||||
uses: ATiltedTree/setup-rust@v1
|
|
||||||
with:
|
|
||||||
rust-version: stable
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|||||||
34
Cross.toml
34
Cross.toml
@@ -1,40 +1,14 @@
|
|||||||
# These make sure our builds are compatible with old glibc versions.
|
# These make sure our builds are compatible with old glibc versions.
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
pre-build = [
|
pre-build = [
|
||||||
# Install newer gfortran
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
||||||
"yum install -y centos-release-scl",
|
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH protobuf-compiler",
|
||||||
"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"
|
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos"
|
||||||
|
|
||||||
[target.aarch64-unknown-linux-gnu]
|
[target.aarch64-unknown-linux-gnu]
|
||||||
pre-build = [
|
pre-build = [
|
||||||
"yum install -y openssl-devel unzip",
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
||||||
# protobuf is too old, so we directly download binaries
|
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH protobuf-compiler",
|
||||||
"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"
|
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",
|
|
||||||
]
|
|
||||||
|
|||||||
@@ -21,10 +21,6 @@ build_node_binaries() {
|
|||||||
echo "Building node library for $target"
|
echo "Building node library for $target"
|
||||||
# cross doesn't yet pass this down to Docker, so we do it ourselves.
|
# cross doesn't yet pass this down to Docker, so we do it ourselves.
|
||||||
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
|
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
|
||||||
if [[ $target == *musl ]]; then
|
|
||||||
# This is needed for cargo to allow build cdylibs with musl
|
|
||||||
RUSTFLAGS="-C target-feature=-crt-static"
|
|
||||||
fi
|
|
||||||
npm run cross-release -- --target $target
|
npm run cross-release -- --target $target
|
||||||
npm run pack-build -- --target $target
|
npm run pack-build -- --target $target
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user