Compare commits

...

1 Commits

Author SHA1 Message Date
Will Jones
19397c6188 fixes for action 2023-05-23 18:59:45 -07:00

View File

@@ -37,6 +37,7 @@ jobs:
run: cargo package --all-features run: cargo package --all-features
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
draft: true
files: | files: |
rust/target/vectordb-*.crate rust/target/vectordb-*.crate
@@ -55,11 +56,12 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.10 python-version: "3.10"
- name: Build wheel - name: Build wheel
run: python setup.py sdist bdist_wheel run: python setup.py sdist bdist_wheel
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
draft: true
files: | files: |
python/dist/lancedb-*.tar.gz python/dist/lancedb-*.tar.gz
python/dist/lancedb-*.whl python/dist/lancedb-*.whl
@@ -91,6 +93,7 @@ jobs:
npm pack npm pack
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
draft: true
files: node/vectordb-*.tgz files: node/vectordb-*.tgz
node-macos: node-macos:
@@ -104,10 +107,13 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install system dependencies - name: Install system dependencies
run: brew install protobuf run: brew install protobuf
- name: Install npm dependencies
run: npm ci
- name: Build MacOS native node modules - name: Build MacOS native node modules
run: bash ci/build_macos_artifacts.sh ${{ matrix.target }} run: bash ci/build_macos_artifacts.sh ${{ matrix.target }}
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
draft: true
files: node/dist/vectordb-darwin*.tgz files: node/dist/vectordb-darwin*.tgz
node-linux: node-linux:
@@ -121,18 +127,24 @@ jobs:
- aarch64-unknown-linux-musl - aarch64-unknown-linux-musl
- x86_64-unknown-linux-musl - x86_64-unknown-linux-musl
steps: steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install system dependencies - name: Install system dependencies
run: | run: |
sudo apt update sudo apt update
sudo apt install -y protobuf-compiler libssl-dev sudo apt install -y protobuf-compiler libssl-dev
cargo install cross
- name: Install npm dependencies
run: npm ci
- name: Build Linux native node modules - name: Build Linux native node modules
run: bash ci/build_linux_artifacts.sh ${{ matrix.target }} run: bash ci/build_linux_artifacts.sh ${{ matrix.target }}
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
draft: true
files: node/dist/vectordb-linux*.tgz files: node/dist/vectordb-linux*.tgz
release: release:
needs: [python, node, node-macos, node-linux] needs: [python, node, node-macos, node-linux, rust]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3