Skip to content

Commit

Permalink
Run CI without default features (#42)
Browse files Browse the repository at this point in the history
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`
```
  • Loading branch information
ccouzens authored Jun 5, 2023
1 parent bce30b4 commit ef59255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
run: sudo apt-get install libleptonica-dev libtesseract-dev clang tesseract-ocr-eng
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
run: cargo build --verbose --no-default-features
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --no-default-features
- name: Check formatting
run: cargo fmt -- --check

0 comments on commit ef59255

Please sign in to comment.