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 | |
|---|---|---|---|
|
|
181f8e1ebf |
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
@@ -133,10 +133,13 @@ jobs:
|
|||||||
- container: quay.io/pypa/manylinux2014_x86_64
|
- container: quay.io/pypa/manylinux2014_x86_64
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
protoc_arch: x86_64
|
protoc_arch: x86_64
|
||||||
- container: quay.io/pypa/manylinux2014_aarch64
|
# TODO: find a way to build aarch64 on GA
|
||||||
arch: aarch64
|
# - container: quay.io/pypa/manylinux2014_aarch64
|
||||||
protoc_arch: aarch_64
|
# arch: aarch64
|
||||||
container: ${{ matrix.settings.container }}
|
# protoc_arch: aarch_64
|
||||||
|
container:
|
||||||
|
image: ${{ matrix.settings.container }}
|
||||||
|
options: --platform linux/amd64
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -148,24 +151,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yum install -y openssl-devel unzip
|
yum install -y openssl-devel unzip
|
||||||
# Install new enough protobuf (yum-provided is old)
|
# Install new enough protobuf (yum-provided is old)
|
||||||
PB_REL=https://github.com/protocolbuffers/protobuf/releases \
|
PB_REL=https://github.com/protocolbuffers/protobuf/releases
|
||||||
PB_VERSION=23.1 \
|
PB_VERSION=23.1
|
||||||
curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip && \
|
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
|
unzip protoc-$PB_VERSION-linux-${{ matrix.settings.protoc_arch }}.zip -d /usr/local
|
||||||
- uses: actions/setup-node@v3
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 17 # Last that support glibc 2.17
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
run: |
|
||||||
with:
|
curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
rust-version: stable
|
echo "/root/.cargo/bin" >> $GITHUB_PATH
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build ${{ matrix.settings.libc }} library
|
- name: Build ${{ matrix.settings.libc }} library
|
||||||
run: |
|
run: |
|
||||||
export BUILD_TARGET=${{ matrix.settings.arch }}-unknown-linux-${{ matrix.settings.libc }}
|
BUILD_TARGET=${{ matrix.settings.arch }}-unknown-linux-${{ matrix.settings.libc }}
|
||||||
rustup target add $BUILD_TARGET
|
rustup target add $BUILD_TARGET
|
||||||
export RUSTFLAGS="-C target-feature=-crt-static"
|
export RUSTFLAGS="-C target-feature=-crt-static" # for musl
|
||||||
npm run build-release -- --target $BUILD_TARGET
|
npm run build-release -- --target $BUILD_TARGET
|
||||||
npm run pack-build -- --target $BUILD_TARGET
|
npm run pack-build -- --target $BUILD_TARGET
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user