mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-04 10:52:56 +00:00
Compare commits
1 Commits
v0.1.2-dev
...
v0.1.2-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
181f8e1ebf |
59
.github/workflows/release.yml
vendored
59
.github/workflows/release.yml
vendored
@@ -120,35 +120,58 @@ jobs:
|
|||||||
files: node/dist/vectordb-darwin*.tgz
|
files: node/dist/vectordb-darwin*.tgz
|
||||||
|
|
||||||
node-linux:
|
node-linux:
|
||||||
|
name: Linux ${{ matrix.settings.arch}} native node module
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: draft-release
|
needs: draft-release
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
libc:
|
||||||
- x86_64-unknown-linux-gnu
|
- gnu
|
||||||
# TODO: get release working for these targets
|
- musl
|
||||||
# - aarch64-unknown-linux-gnu
|
settings:
|
||||||
# - aarch64-unknown-linux-musl
|
- container: quay.io/pypa/manylinux2014_x86_64
|
||||||
# - x86_64-unknown-linux-musl
|
arch: x86_64
|
||||||
|
protoc_arch: x86_64
|
||||||
|
# TODO: find a way to build aarch64 on GA
|
||||||
|
# - container: quay.io/pypa/manylinux2014_aarch64
|
||||||
|
# arch: aarch64
|
||||||
|
# protoc_arch: aarch_64
|
||||||
|
container:
|
||||||
|
image: ${{ matrix.settings.container }}
|
||||||
|
options: --platform linux/amd64
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
working-directory: node
|
||||||
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
|
yum install -y openssl-devel unzip
|
||||||
sudo apt install -y protobuf-compiler libssl-dev
|
# Install new enough protobuf (yum-provided is old)
|
||||||
cargo install cross
|
PB_REL=https://github.com/protocolbuffers/protobuf/releases
|
||||||
- name: Install npm dependencies
|
PB_VERSION=23.1
|
||||||
|
curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip
|
||||||
|
unzip protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip -d /usr/local
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 17 # Last that support glibc 2.17
|
||||||
|
- name: Setup Rust
|
||||||
run: |
|
run: |
|
||||||
cd node
|
curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
npm ci
|
echo "/root/.cargo/bin" >> $GITHUB_PATH
|
||||||
- name: Build Linux native node modules
|
- name: Install npm dependencies
|
||||||
run: bash ci/build_linux_artifacts.sh ${{ matrix.target }}
|
run: npm ci
|
||||||
|
- name: Build ${{ matrix.settings.libc }} library
|
||||||
|
run: |
|
||||||
|
BUILD_TARGET=${{ matrix.settings.arch }}-unknown-linux-${{ matrix.settings.libc }}
|
||||||
|
rustup target add $BUILD_TARGET
|
||||||
|
export RUSTFLAGS="-C target-feature=-crt-static" # for musl
|
||||||
|
npm run build-release -- --target $BUILD_TARGET
|
||||||
|
npm run pack-build -- --target $BUILD_TARGET
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
pre-build = [
|
pre-build = [
|
||||||
# Install newer gfortran
|
# Install newer gfortran
|
||||||
"yum install -y centos-release-scl",
|
"yum install -y openssl-devel unzip gcc-gfortran",
|
||||||
"yum install -y openssl-devel unzip devtoolset-11-gcc-gfortran",
|
|
||||||
"scl enable devtoolset-11 bash",
|
"scl enable devtoolset-11 bash",
|
||||||
# protobuf is too old, so we directly download binaries
|
# protobuf is too old, so we directly download binaries
|
||||||
"PB_REL=https://github.com/protocolbuffers/protobuf/releases",
|
"PB_REL=https://github.com/protocolbuffers/protobuf/releases",
|
||||||
|
|||||||
Reference in New Issue
Block a user