Skip to content

A fast, helpful, and open-source document parser

make some more workflow fixes

Logan Markewich1939efd5e318
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index 8f42ae2..e544378 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -74,7 +74,9 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
- args: --release --out dist --find-interpreter
+ args: >-
+ --release --out dist --find-interpreter
+ ${{ matrix.target == 'aarch64-unknown-linux-gnu' && '--no-default-features' || '' }}
manylinux: 2_28
working-directory: packages/python
before-script-linux: |
@@ -90,6 +92,8 @@ jobs:
if: runner.os != 'Windows'
working-directory: packages/python
run: |
+ # Fix permissions from Docker/maturin build
+ sudo chmod -R a+rw dist/ || true
# 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
diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml
index 71ac658..fb7503b 100644
--- a/.github/workflows/release-python.yml
+++ b/.github/workflows/release-python.yml
@@ -96,7 +96,9 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
- args: --release --out dist --find-interpreter
+ args: >-
+ --release --out dist --find-interpreter
+ ${{ matrix.target == 'aarch64-unknown-linux-gnu' && '--no-default-features' || '' }}
manylinux: 2_28
working-directory: packages/python
before-script-linux: |
@@ -112,6 +114,8 @@ jobs:
if: runner.os != 'Windows'
working-directory: packages/python
run: |
+ # Fix permissions from Docker/maturin build
+ sudo chmod -R a+rw dist/ || true
# 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
diff --git a/crates/pdfium-sys/build.rs b/crates/pdfium-sys/build.rs
index 98e3f62..fc7e029 100644
--- a/crates/pdfium-sys/build.rs
+++ b/crates/pdfium-sys/build.rs
@@ -249,6 +249,7 @@ fn run_bindgen(include_dir: &Path) {
.allowlist_var("FPDF.*")
.derive_debug(true)
.derive_default(true)
+ .layout_tests(false)
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.expect("Unable to generate bindings");