File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,30 @@ jobs:
3737 - name : Set up SW path
3838 run : echo "D:\a\ksnip-plugin-ocr\ksnip-plugin-ocr\sw" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
3939
40- - name : Set up leptonica
40+ # - name: Build and install libtiff
41+ # run: |
42+ # git clone --depth 1 https://gitlab.com/libtiff/libtiff
43+ # cd libtiff
44+ # mkdir build
45+ # cd build && cmake .. -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release
46+ # nmake
47+ # nmake install
48+
49+ - name : Build and install leptonica
4150 run : |
42- git clone https://github.com/DanBloomberg/leptonica.git
51+ git clone --depth 1 https://github.com/DanBloomberg/leptonica.git
4352 cd leptonica
4453 mkdir build
45- cd build && cmake .. -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_PROG=OFF -DSW_BUILD=OFF
54+ cd build && cmake .. -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_PROG=OFF
4655 nmake
4756 nmake install
4857
49- - name : Set up tessarect
58+ - name : Build and install tessarect
5059 run : |
51- git clone https://github.com/tesseract-ocr/tesseract.git
60+ git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git
5261 cd tesseract
5362 mkdir build
54- cd build && cmake .. -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TRAINING_TOOLS=OFF -DSW_BUILD=OFF - DOPENMP_BUILD=OFF
63+ cd build && cmake .. -G"NMake Makefiles" -DCMAKE_INSTALL_PREFIX="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TRAINING_TOOLS=OFF -DOPENMP_BUILD=OFF
5564 nmake
5665 nmake install
5766
You can’t perform that action at this time.
0 commit comments