mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-24 05:49:57 +00:00
Compare commits
1 Commits
v0.1.2-dev
...
v0.1.2-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e28488122f |
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -38,8 +38,7 @@ jobs:
|
||||
- uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: |
|
||||
rust/target/vectordb-*.crate
|
||||
files: target/vectordb-*.crate
|
||||
|
||||
python:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -58,7 +57,9 @@ jobs:
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Build wheel
|
||||
run: python setup.py sdist bdist_wheel
|
||||
run: |
|
||||
pip install wheel
|
||||
python setup.py sdist bdist_wheel
|
||||
- uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
@@ -81,7 +82,6 @@ jobs:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
cache-dependency-path: node/package-lock.json
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
@@ -100,6 +100,7 @@ jobs:
|
||||
runs-on: macos-12
|
||||
needs: draft-release
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: [x86_64-apple-darwin, aarch64-apple-darwin]
|
||||
steps:
|
||||
@@ -108,7 +109,9 @@ jobs:
|
||||
- name: Install system dependencies
|
||||
run: brew install protobuf
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
run: |
|
||||
cd node
|
||||
npm ci
|
||||
- name: Build MacOS native node modules
|
||||
run: bash ci/build_macos_artifacts.sh ${{ matrix.target }}
|
||||
- uses: softprops/action-gh-release@v1
|
||||
@@ -120,6 +123,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: draft-release
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target:
|
||||
- x86_64-unknown-linux-gnu:centos
|
||||
@@ -135,7 +139,9 @@ jobs:
|
||||
sudo apt install -y protobuf-compiler libssl-dev
|
||||
cargo install cross
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
run: |
|
||||
cd node
|
||||
npm ci
|
||||
- name: Build Linux native node modules
|
||||
run: bash ci/build_linux_artifacts.sh ${{ matrix.target }}
|
||||
- uses: softprops/action-gh-release@v1
|
||||
|
||||
@@ -20,11 +20,7 @@ build_node_binaries() {
|
||||
do
|
||||
echo "Building node library for $target"
|
||||
# cross doesn't yet pass this down to Docker, so we do it ourselves.
|
||||
if [[ $target == x86_64* ]]; then
|
||||
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
|
||||
else
|
||||
export CROSS_CONTAINER_OPTS="--platform linux/arm64/v8"
|
||||
fi
|
||||
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
|
||||
npm run cross-release -- --target $target
|
||||
npm run pack-build -- --target $target
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user