Skip to content

Commit ef59255

Browse files
authored
Run CI without default features (#42)
As the test environment doesn't have tesseract-5.2 @philsuess 's recent change https://github.com/antimatter15/tesseract-rs/pull/41enables us to disable the cutting edge parts of tesseract. We were seeing issues like this https://github.com/antimatter15/tesseract-rs/actions/runs/4854598122/jobs/8652164531 ``` error[E0432]: unresolved import `self::tesseract_sys::TessBaseAPIInit5` --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tesseract-plumbing-0.10.0/src/tess_base_api.rs:9:5 | 9 | TessBaseAPIInit5, TessBaseAPIMeanTextConf, TessBaseAPIRecognize, TessBaseAPISetImage, | ^^^^^^^^^^^^^^^^ | | | no `TessBaseAPIInit5` in the root | help: a similar name exists in the module: `TessBaseAPIInit1` ```
1 parent bce30b4 commit ef59255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
run: sudo apt-get install libleptonica-dev libtesseract-dev clang tesseract-ocr-eng
2020
- uses: actions/checkout@v2
2121
- name: Build
22-
run: cargo build --verbose
22+
run: cargo build --verbose --no-default-features
2323
- name: Run tests
24-
run: cargo test --verbose
24+
run: cargo test --verbose --no-default-features
2525
- name: Check formatting
2626
run: cargo fmt -- --check

0 commit comments

Comments
 (0)