A fast, helpful, and open-source document parser
fix some workflows
Logan Markewich551a301ba20b
diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.ymlindex 9f453a5..3947b84 100644--- a/.github/workflows/ci-node.yml+++ b/.github/workflows/ci-node.yml@@ -86,7 +86,12 @@ jobs:- name: Build native moduleworking-directory: packages/node- run: npx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target ${{ matrix.target }} .+ run: |+ FEATURES_FLAG=""+ if [ "${{ matrix.use-cross }}" = "true" ]; then+ FEATURES_FLAG="--no-default-features"+ fi+ npx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target ${{ matrix.target }} $FEATURES_FLAG .- name: Copy pdfium dylib (Unix)if: runner.os != 'Windows'diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.ymlindex 2ff5cb5..aea8b54 100644--- a/.github/workflows/ci-python.yml+++ b/.github/workflows/ci-python.yml@@ -76,11 +76,11 @@ jobs:working-directory: packages/pythonbefore-script-linux: |if command -v yum &> /dev/null; then- yum install -y clang-devel tesseract-devel leptonica-devel || true+ yum install -y python3-devel clang-devel tesseract-devel leptonica-devel || trueelif command -v apt-get &> /dev/null; then- apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev || true+ apt-get update && apt-get install -y python3-dev libclang-dev libtesseract-dev libleptonica-dev || trueelif command -v apk &> /dev/null; then- apk add clang-dev tesseract-ocr-dev leptonica-dev || true+ apk add python3-dev clang-dev tesseract-ocr-dev leptonica-dev || truefi- name: Copy pdfium dylib into wheel (Unix)diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 93b5f53..7985c2f 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -83,8 +83,8 @@ jobs:targetkey: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}- - run: cargo build --all-targets --exclude liteparse-python --exclude liteparse-napi- - run: cargo test --all --exclude liteparse-python --exclude liteparse-napi+ - run: cargo build --workspace --all-targets --exclude liteparse-python --exclude liteparse-napi+ - run: cargo test --workspace --exclude liteparse-python --exclude liteparse-napi- name: CLI smoke testif: runner.os != 'Windows'diff --git a/.github/workflows/release-node.yml b/.github/workflows/release-node.ymlindex c7aaaae..3a0c144 100644--- a/.github/workflows/release-node.yml+++ b/.github/workflows/release-node.yml@@ -103,7 +103,12 @@ jobs:- name: Build native moduleworking-directory: packages/node- run: npx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target ${{ matrix.target }} .+ run: |+ FEATURES_FLAG=""+ if [ "${{ matrix.use-cross }}" = "true" ]; then+ FEATURES_FLAG="--no-default-features"+ fi+ npx napi build --cargo-cwd ../../crates/liteparse-napi --platform --release --js false --dts native.d.ts --target ${{ matrix.target }} $FEATURES_FLAG .- name: Copy pdfium dylib (Unix)if: runner.os != 'Windows'diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.ymlindex 824b0f8..cef6bbd 100644--- a/.github/workflows/release-python.yml+++ b/.github/workflows/release-python.yml@@ -98,11 +98,11 @@ jobs:working-directory: packages/pythonbefore-script-linux: |if command -v yum &> /dev/null; then- yum install -y clang-devel tesseract-devel leptonica-devel || true+ yum install -y python3-devel clang-devel tesseract-devel leptonica-devel || trueelif command -v apt-get &> /dev/null; then- apt-get update && apt-get install -y libclang-dev libtesseract-dev libleptonica-dev || true+ apt-get update && apt-get install -y python3-dev libclang-dev libtesseract-dev libleptonica-dev || trueelif command -v apk &> /dev/null; then- apk add clang-dev tesseract-ocr-dev leptonica-dev || true+ apk add python3-dev clang-dev tesseract-ocr-dev leptonica-dev || truefi- name: Copy pdfium dylib into wheel (Unix)