mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-04 02:42:57 +00:00
`npm run pack-build -- -t $TARGET_TRIPLE` was needed instead of `npm run pack-build -t $TARGET_TRIPLE` https://github.com/lancedb/lancedb/pull/1889 some documentation about `*-pc-windows-msvc` cross-compilation (from alpine): https://github.com/lancedb/lancedb/pull/1831#issuecomment-2497156918 only `arm64` in `matrix` config is used since `x86_64` built by `runs-on: windows-2022` is working
22 lines
529 B
Bash
Executable File
22 lines
529 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}
|
|
|
|
if [ "$ARCH" = "x86_64" ]; then
|
|
export OPENSSL_LIB_DIR=/usr/local/lib64/
|
|
else
|
|
export OPENSSL_LIB_DIR=/usr/local/lib/
|
|
fi
|
|
export OPENSSL_STATIC=1
|
|
export OPENSSL_INCLUDE_DIR=/usr/local/include/openssl
|
|
|
|
#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
|