mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-03 10:22:56 +00:00
This PR fixes build issues associated with `aws-lc-rs`, while simplifying the build process. Previously, we used custom scripts for the musl and Windows ARM builds. These were complicated and prone to breaking. This PR switches to a setup that mirrors https://github.com/napi-rs/package-template/blob/main/.github/workflows/CI.yml. * linux glibc and musl builds now use the Docker images provided by the napi project * Windows ARM build now just cross compiles from Windows x64, which turns out to work quite well.
14 lines
322 B
Bash
Executable File
14 lines
322 B
Bash
Executable File
#!/bin/bash
|
|
# Builds the node module for manylinux. Invoked by ci/build_linux_artifacts.sh.
|
|
set -e
|
|
ARCH=${1:-x86_64}
|
|
TARGET_TRIPLE=${2:-x86_64-unknown-linux-gnu}
|
|
|
|
#Alpine doesn't have .bashrc
|
|
FILE=$HOME/.bashrc && test -f $FILE && source $FILE
|
|
|
|
cd node
|
|
npm ci
|
|
npm run build-release
|
|
npm run pack-build -- -t $TARGET_TRIPLE
|