Skip to content

A fast, helpful, and open-source document parser

fix: add necessary cpp libraries to cached artifacts in the hope they will be there and make the smoke test finally work

Clelia (Astra) Bertelliab8cc7e90e01
diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.yml
index 705e281..d140c15 100644
--- a/.github/workflows/ci-node.yml
+++ b/.github/workflows/ci-node.yml
@@ -142,8 +142,10 @@ jobs:
packages/node/*.node
packages/node/${{ matrix.pdfium-dylib }}
packages/node/libc++.so.1
+ packages/node/libc++abi.so.1
packages/node/libunwind.so.1
- if-no-files-found: error
+ packages/node/libgcc_s.so.1
+ if-no-files-found: warn
test:
needs: build
diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.yml
index 96b365d..e186b97 100644
--- a/.github/workflows/release-node.yml
+++ b/.github/workflows/release-node.yml
@@ -163,8 +163,10 @@ jobs:
packages/node/*.node
packages/node/${{ matrix.pdfium-dylib }}
packages/node/libc++.so.1
+ packages/node/libc++abi.so.1
packages/node/libunwind.so.1
- if-no-files-found: error
+ packages/node/libgcc_s.so.1
+ if-no-files-found: warn
test-bindings:
needs: build-bindings
diff --git a/scripts/build-musl-node.sh b/scripts/build-musl-node.sh
index 022a74f..361ae77 100644
--- a/scripts/build-musl-node.sh
+++ b/scripts/build-musl-node.sh
@@ -57,14 +57,5 @@ for needed in $(ldd "$NODE_FILE" 2>/dev/null | awk '{print $1}' | grep -E '^lib'
cp -v "$src" "./$needed"
done
-# NOTE: the prebuilt libpdfium.so from run-llama/pdfium-binaries is a glibc
-# binary. To run it on musl (Alpine), the user MUST have the gcompat package
-# installed (`apk add gcompat`). gcompat provides:
-# - the glibc dynamic loader at /lib/ld-linux-x86-64.so.2
-# - the FORTIFY_SOURCE wrapper symbols (__memcpy_chk, __vsnprintf_chk, ...)
-# This is a runtime requirement of the musl @llamaindex/liteparse-linux-x64-musl
-# package and is documented in the npm package README. Until the pdfium-binaries
-# fork ships a musl-native build, this is the practical path forward.
-
echo "Bundled libs in $(pwd):"
ls -la *.so* *.node 2>/dev/null