Skip to content

A fast, helpful, and open-source document parser

remove macos intel builds, fix more workflows

Logan Markewich8c0ac4c5fed7
diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.yml
index f08723e..fd52cf0 100644
--- a/.github/workflows/ci-node.yml
+++ b/.github/workflows/ci-node.yml
@@ -29,11 +29,6 @@ jobs:
node-arch: darwin-arm64
pdfium-dylib: libpdfium.dylib
- - os: macos-13
- target: x86_64-apple-darwin
- node-arch: darwin-x64
- pdfium-dylib: libpdfium.dylib
-
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
node-arch: linux-x64-gnu
@@ -139,8 +134,6 @@ jobs:
include:
- os: macos-latest
node-arch: darwin-arm64
- - os: macos-13
- node-arch: darwin-x64
- os: ubuntu-latest
node-arch: linux-x64-gnu
- os: windows-latest
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index f738895..90d36ad 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -27,9 +27,6 @@ jobs:
- os: macos-latest
target: aarch64-apple-darwin
- - os: macos-13
- target: x86_64-apple-darwin
-
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
@@ -76,17 +73,25 @@ jobs:
working-directory: packages/python
before-script-linux: |
if command -v yum &> /dev/null; then
- yum install -y clang-devel tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd || true
+ yum install -y clang-devel tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd glibc-devel || true
elif command -v apt-get &> /dev/null; then
- apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev libssl-dev pkg-config || true
+ apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev libssl-dev pkg-config libc6-dev || true
elif command -v apk &> /dev/null; then
- apk add clang-dev tesseract-ocr-dev leptonica-dev openssl-dev pkgconf || true
+ apk add clang-dev tesseract-ocr-dev leptonica-dev openssl-dev pkgconf musl-dev || true
fi
- name: Copy pdfium dylib into wheel (Unix)
if: runner.os != 'Windows'
working-directory: packages/python
run: |
+ # Find pdfium in target/ (mounted from Docker) or cache
+ PDFIUM_LIB=$(find ../../target -name "libpdfium.so" -type f 2>/dev/null | head -1 || true)
+ if [ -z "$PDFIUM_LIB" ]; then
+ PDFIUM_LIB=$(find ~/.cache/pdfium-rs -name "libpdfium.so" -type f 2>/dev/null | head -1 || true)
+ fi
+ if [ -n "$PDFIUM_LIB" ]; then
+ export PDFIUM_LIB_PATH="$(dirname "$PDFIUM_LIB")"
+ fi
bash scripts/copy-pdfium.sh
for whl in dist/*.whl; do
python -c "
@@ -172,8 +177,6 @@ jobs:
include:
- os: macos-latest
target: aarch64-apple-darwin
- - os: macos-13
- target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
diff --git a/.github/workflows/release-crates.yml b/.github/workflows/release-crates.yml
index 7078c60..be859fd 100644
--- a/.github/workflows/release-crates.yml
+++ b/.github/workflows/release-crates.yml
@@ -75,9 +75,6 @@ jobs:
os: ubuntu-latest
artifact: lit-linux-arm64
use-cross: true
- - target: x86_64-apple-darwin
- os: macos-13
- artifact: lit-darwin-x64
- target: aarch64-apple-darwin
os: macos-latest
artifact: lit-darwin-arm64
diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.yml
index 65f72ed..3e1e9e4 100644
--- a/.github/workflows/release-node.yml
+++ b/.github/workflows/release-node.yml
@@ -45,11 +45,6 @@ jobs:
node-arch: darwin-arm64
pdfium-dylib: libpdfium.dylib
- - os: macos-13
- target: x86_64-apple-darwin
- node-arch: darwin-x64
- pdfium-dylib: libpdfium.dylib
-
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
node-arch: linux-x64-gnu
@@ -156,8 +151,6 @@ jobs:
include:
- os: macos-latest
node-arch: darwin-arm64
- - os: macos-13
- node-arch: darwin-x64
- os: ubuntu-latest
node-arch: linux-x64-gnu
- os: windows-latest
@@ -209,9 +202,6 @@ jobs:
os: ubuntu-latest
artifact: lit-linux-arm64
use-cross: true
- - target: x86_64-apple-darwin
- os: macos-13
- artifact: lit-darwin-x64
- target: aarch64-apple-darwin
os: macos-latest
artifact: lit-darwin-arm64
@@ -309,7 +299,6 @@ jobs:
run: |
declare -A PLATFORMS=(
["darwin-arm64"]="aarch64-apple-darwin"
- ["darwin-x64"]="x86_64-apple-darwin"
["linux-x64-gnu"]="x86_64-unknown-linux-gnu"
["linux-arm64-gnu"]="aarch64-unknown-linux-gnu"
["win32-x64-msvc"]="x86_64-pc-windows-msvc"
@@ -334,7 +323,6 @@ jobs:
case "$ARCH" in
darwin-arm64) OS="darwin"; CPU="arm64" ;;
- darwin-x64) OS="darwin"; CPU="x64" ;;
linux-x64-gnu) OS="linux"; CPU="x64" ;;
linux-arm64-gnu) OS="linux"; CPU="arm64" ;;
win32-x64-msvc) OS="win32"; CPU="x64" ;;
diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml
index 981cffe..e7d9110 100644
--- a/.github/workflows/release-python.yml
+++ b/.github/workflows/release-python.yml
@@ -48,9 +48,6 @@ jobs:
- os: macos-latest
target: aarch64-apple-darwin
- - os: macos-13
- target: x86_64-apple-darwin
-
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
@@ -98,17 +95,25 @@ jobs:
working-directory: packages/python
before-script-linux: |
if command -v yum &> /dev/null; then
- yum install -y clang-devel tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd || true
+ yum install -y clang-devel tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd glibc-devel || true
elif command -v apt-get &> /dev/null; then
- apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev libssl-dev pkg-config || true
+ apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev libssl-dev pkg-config libc6-dev || true
elif command -v apk &> /dev/null; then
- apk add clang-dev tesseract-ocr-dev leptonica-dev openssl-dev pkgconf || true
+ apk add clang-dev tesseract-ocr-dev leptonica-dev openssl-dev pkgconf musl-dev || true
fi
- name: Copy pdfium dylib into wheel (Unix)
if: runner.os != 'Windows'
working-directory: packages/python
run: |
+ # Find pdfium in target/ (mounted from Docker) or cache
+ PDFIUM_LIB=$(find ../../target -name "libpdfium.so" -type f 2>/dev/null | head -1 || true)
+ if [ -z "$PDFIUM_LIB" ]; then
+ PDFIUM_LIB=$(find ~/.cache/pdfium-rs -name "libpdfium.so" -type f 2>/dev/null | head -1 || true)
+ fi
+ if [ -n "$PDFIUM_LIB" ]; then
+ export PDFIUM_LIB_PATH="$(dirname "$PDFIUM_LIB")"
+ fi
bash scripts/copy-pdfium.sh
for whl in dist/*.whl; do
python -c "
@@ -195,8 +200,6 @@ jobs:
include:
- os: macos-latest
target: aarch64-apple-darwin
- - os: macos-13
- target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
@@ -286,9 +289,6 @@ jobs:
os: ubuntu-latest
artifact: lit-linux-arm64
use-cross: true
- - target: x86_64-apple-darwin
- os: macos-13
- artifact: lit-darwin-x64
- target: aarch64-apple-darwin
os: macos-latest
artifact: lit-darwin-arm64
diff --git a/packages/node/package.json b/packages/node/package.json
index 44c57b7..9198585 100644
--- a/packages/node/package.json
+++ b/packages/node/package.json
@@ -52,7 +52,6 @@
},
"optionalDependencies": {
"@llamaindex/liteparse-darwin-arm64": "2.0.0",
- "@llamaindex/liteparse-darwin-x64": "2.0.0",
"@llamaindex/liteparse-linux-arm64-gnu": "2.0.0",
"@llamaindex/liteparse-linux-x64-gnu": "2.0.0",
"@llamaindex/liteparse-win32-x64-msvc": "2.0.0"