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.ymlindex f08723e..fd52cf0 100644--- a/.github/workflows/ci-node.yml+++ b/.github/workflows/ci-node.yml@@ -29,11 +29,6 @@ jobs:node-arch: darwin-arm64pdfium-dylib: libpdfium.dylib- - os: macos-13- target: x86_64-apple-darwin- node-arch: darwin-x64- pdfium-dylib: libpdfium.dylib-- os: ubuntu-latesttarget: x86_64-unknown-linux-gnunode-arch: linux-x64-gnu@@ -139,8 +134,6 @@ jobs:include:- os: macos-latestnode-arch: darwin-arm64- - os: macos-13- node-arch: darwin-x64- os: ubuntu-latestnode-arch: linux-x64-gnu- os: windows-latestdiff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.ymlindex f738895..90d36ad 100644--- a/.github/workflows/ci-python.yml+++ b/.github/workflows/ci-python.yml@@ -27,9 +27,6 @@ jobs:- os: macos-latesttarget: aarch64-apple-darwin- - os: macos-13- target: x86_64-apple-darwin-- os: ubuntu-latesttarget: x86_64-unknown-linux-gnu@@ -76,17 +73,25 @@ jobs:working-directory: packages/pythonbefore-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 || trueelif 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 || trueelif 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 || truefi- name: Copy pdfium dylib into wheel (Unix)if: runner.os != 'Windows'working-directory: packages/pythonrun: |+ # 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")"+ fibash scripts/copy-pdfium.shfor whl in dist/*.whl; dopython -c "@@ -172,8 +177,6 @@ jobs:include:- os: macos-latesttarget: aarch64-apple-darwin- - os: macos-13- target: x86_64-apple-darwin- os: ubuntu-latesttarget: x86_64-unknown-linux-gnu- os: windows-latestdiff --git a/.github/workflows/release-crates.yml b/.github/workflows/release-crates.ymlindex 7078c60..be859fd 100644--- a/.github/workflows/release-crates.yml+++ b/.github/workflows/release-crates.yml@@ -75,9 +75,6 @@ jobs:os: ubuntu-latestartifact: lit-linux-arm64use-cross: true- - target: x86_64-apple-darwin- os: macos-13- artifact: lit-darwin-x64- target: aarch64-apple-darwinos: macos-latestartifact: lit-darwin-arm64diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.ymlindex 65f72ed..3e1e9e4 100644--- a/.github/workflows/release-node.yml+++ b/.github/workflows/release-node.yml@@ -45,11 +45,6 @@ jobs:node-arch: darwin-arm64pdfium-dylib: libpdfium.dylib- - os: macos-13- target: x86_64-apple-darwin- node-arch: darwin-x64- pdfium-dylib: libpdfium.dylib-- os: ubuntu-latesttarget: x86_64-unknown-linux-gnunode-arch: linux-x64-gnu@@ -156,8 +151,6 @@ jobs:include:- os: macos-latestnode-arch: darwin-arm64- - os: macos-13- node-arch: darwin-x64- os: ubuntu-latestnode-arch: linux-x64-gnu- os: windows-latest@@ -209,9 +202,6 @@ jobs:os: ubuntu-latestartifact: lit-linux-arm64use-cross: true- - target: x86_64-apple-darwin- os: macos-13- artifact: lit-darwin-x64- target: aarch64-apple-darwinos: macos-latestartifact: 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" indarwin-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.ymlindex 981cffe..e7d9110 100644--- a/.github/workflows/release-python.yml+++ b/.github/workflows/release-python.yml@@ -48,9 +48,6 @@ jobs:- os: macos-latesttarget: aarch64-apple-darwin- - os: macos-13- target: x86_64-apple-darwin-- os: ubuntu-latesttarget: x86_64-unknown-linux-gnu@@ -98,17 +95,25 @@ jobs:working-directory: packages/pythonbefore-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 || trueelif 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 || trueelif 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 || truefi- name: Copy pdfium dylib into wheel (Unix)if: runner.os != 'Windows'working-directory: packages/pythonrun: |+ # 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")"+ fibash scripts/copy-pdfium.shfor whl in dist/*.whl; dopython -c "@@ -195,8 +200,6 @@ jobs:include:- os: macos-latesttarget: aarch64-apple-darwin- - os: macos-13- target: x86_64-apple-darwin- os: ubuntu-latesttarget: x86_64-unknown-linux-gnu- os: windows-latest@@ -286,9 +289,6 @@ jobs:os: ubuntu-latestartifact: lit-linux-arm64use-cross: true- - target: x86_64-apple-darwin- os: macos-13- artifact: lit-darwin-x64- target: aarch64-apple-darwinos: macos-latestartifact: lit-darwin-arm64diff --git a/packages/node/package.json b/packages/node/package.jsonindex 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"