Skip to content

Commit 23fffec

Browse files
committed
Update to tesseract 5.0.0-alpha
1 parent 4fb2035 commit 23fffec

File tree

4 files changed

+11
-113
lines changed

4 files changed

+11
-113
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,23 @@ jobs:
3838
sw_args: '-platform x64 -os macos-10.13'
3939

4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v2.3.4
4242
with:
4343
submodules: true
4444

4545
- uses: egorpugin/sw-action@master
4646

4747
- name: Cache
4848
id: cache
49-
uses: actions/cache@v2.1.1
49+
uses: actions/cache@v2.1.5
5050
with:
5151
path: storage
5252
key: ${{ matrix.config.os }}${{ matrix.config.sw_args }}
5353

5454
- name: Build Tesseract
5555
if: steps.cache.outputs.cache-hit != 'true'
5656
run: |
57-
mv -f sw.cpp tesseract/sw.cpp
58-
./sw ${{ matrix.config.sw_args }} -d tesseract -storage-dir ../storage -static -static-dependencies -config r build
59-
mv tesseract storage/pkg
57+
./sw build ${{ matrix.config.sw_args }} -storage-dir=storage -static -static-dependencies -config r org.sw.demo.google.tesseract.tesseract-master
6058
6159
- name: Extract Headers & Libraries
6260
continue-on-error: true
@@ -68,11 +66,16 @@ jobs:
6866
find "storage/pkg/" -name "*.a" -exec cp "{}" "libs" \;
6967
find "storage/pkg/" -name "*.lib" -exec cp "{}" "libs" \;
7068
71-
find "storage/pkg/tesseract/include" -name "*.h" -exec cp "{}" headers/tesseract/ \;
72-
find "storage/pkg/tesseract" -name "version.h" -exec cp "{}" headers/tesseract/ \; -quit
69+
tesseract=$(find "storage/pkg/" -name "baseapi.h" -exec dirname {} \; -quit)
70+
find "$tesseract" -name "*.h*" -exec cp "{}" headers/tesseract/ \;
71+
find "storage/pkg/" -wholename "*tesseract/version.h" -exec cp "{}" headers/tesseract/ \;
7372
7473
leptonica=$(find "storage/pkg/" -name "*leptonica*" -exec dirname {} \; -quit)/../../../../
7574
find "$leptonica" -name "*.h" -exec cp "{}" headers/leptonica/ \;
75+
76+
# Delete crap that causes linking errors
77+
rm libs/*xxHash*
78+
rm libs/*boost.thread*
7679
7780
- name: Build Plugin
7881
continue-on-error: true
@@ -81,6 +84,6 @@ jobs:
8184
cmake --build . --config Release
8285
find . -name libtesseract.binary -exec cp "{}" ${{ matrix.config.output }} \;
8386
84-
- uses: actions/upload-artifact@v2
87+
- uses: actions/upload-artifact@v2.2.3
8588
with:
8689
path: ${{ matrix.config.output }}

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

sw.cpp

Lines changed: 0 additions & 101 deletions
This file was deleted.

tesseract

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)