Skip to content

Commit 6792476

Browse files
author
Damir Porobic
committed
Enable sw build again
1 parent 838c9a9 commit 6792476

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/windows.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)