A fast, helpful, and open-source document parser
fix builds
Logan Markewich746b4cee18a4
diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.ymlindex 932a692..e6e0926 100644--- a/.github/workflows/ci-node.yml+++ b/.github/workflows/ci-node.yml@@ -105,7 +105,7 @@ jobs:-w /work/packages/node \node:20-alpine \sh -c '- apk add --no-cache build-base cmake git curl pkgconf tesseract-ocr-dev leptonica-dev perl+ apk add --no-cache build-base cmake git curl pkgconf tesseract-ocr-dev leptonica-dev perl openssl-devcurl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable -t x86_64-unknown-linux-muslsource /root/.cargo/envnpx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target x86_64-unknown-linux-musl .diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.ymlindex 0bada1f..d3d37fb 100644--- a/.github/workflows/ci-python.yml+++ b/.github/workflows/ci-python.yml@@ -104,7 +104,13 @@ jobs:manylinux: musllinux_1_2working-directory: packages/pythonbefore-script-linux: |- apk add --no-cache tesseract-ocr-dev leptonica-dev openssl-dev pkgconf build-base cmake perl+ if command -v apk &> /dev/null; then+ apk add --no-cache tesseract-ocr-dev leptonica-dev openssl-dev pkgconf build-base cmake perl+ elif command -v yum &> /dev/null; then+ yum install -y tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd || true+ elif command -v apt-get &> /dev/null; then+ apt-get update && apt-get install -y libtesseract-dev libleptonica-dev libssl-dev pkg-config || true+ fi- name: Copy pdfium dylib into wheel (Unix)if: runner.os != 'Windows'diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.ymlindex 93828e7..11eba2c 100644--- a/.github/workflows/release-node.yml+++ b/.github/workflows/release-node.yml@@ -126,7 +126,7 @@ jobs:-w /work/packages/node \node:20-alpine \sh -c '- apk add --no-cache build-base cmake git curl pkgconf tesseract-ocr-dev leptonica-dev perl+ apk add --no-cache build-base cmake git curl pkgconf tesseract-ocr-dev leptonica-dev perl openssl-devcurl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable -t x86_64-unknown-linux-muslsource /root/.cargo/envnpx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target x86_64-unknown-linux-musl .diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.ymlindex e79b685..55df1f0 100644--- a/.github/workflows/release-python.yml+++ b/.github/workflows/release-python.yml@@ -126,7 +126,13 @@ jobs:manylinux: musllinux_1_2working-directory: packages/pythonbefore-script-linux: |- apk add --no-cache tesseract-ocr-dev leptonica-dev openssl-dev pkgconf build-base cmake perl+ if command -v apk &> /dev/null; then+ apk add --no-cache tesseract-ocr-dev leptonica-dev openssl-dev pkgconf build-base cmake perl+ elif command -v yum &> /dev/null; then+ yum install -y tesseract-devel leptonica-devel openssl-devel pkgconfig perl-IPC-Cmd || true+ elif command -v apt-get &> /dev/null; then+ apt-get update && apt-get install -y libtesseract-dev libleptonica-dev libssl-dev pkg-config || true+ fi- name: Copy pdfium dylib into wheel (Unix)if: runner.os != 'Windows'