mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
cmake: remove config option from build to avoid GA wrong build
This commit is contained in:
parent
694cd16cb8
commit
ec829cd90f
14
.github/workflows/cmake-win64.yml
vendored
14
.github/workflows/cmake-win64.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/zlib-ng/zlib-ng.git
|
||||
cd zlib-ng
|
||||
cmake -Bbuild -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DBUILD_SHARED_LIBS=OFF -DZLIB_COMPAT=ON -DZLIB_ENABLE_TESTS=OFF -DINSTALL_UTILS=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
cd ..
|
||||
|
||||
- name: Build and Install libpng
|
||||
@ -57,7 +57,7 @@ jobs:
|
||||
unzip.exe -qq lpng${{env.png_ver}}.zip
|
||||
cd lpng${{env.png_ver}}
|
||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DPNG_TESTS=OFF -DPNG_SHARED=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
cd ..
|
||||
|
||||
- name: Build and Install libjpeg
|
||||
@ -66,7 +66,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo.git
|
||||
cd libjpeg-turbo
|
||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DWITH_TURBOJPEG=OFF -DENABLE_SHARED=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
cd ..
|
||||
|
||||
- name: Build and Install jbigkit
|
||||
@ -75,7 +75,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/zdenop/jbigkit.git
|
||||
cd jbigkit
|
||||
cmake -Bbuild -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DBUILD_PROGRAMS=OFF -DBUILD_TOOLS=OFF -DCMAKE_WARN_DEPRECATED=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
cd ..
|
||||
|
||||
- name: Build and Install libtiff
|
||||
@ -84,7 +84,7 @@ jobs:
|
||||
git clone -c advice.detachedHead=false -b "v4.6.0" --depth 1 https://gitlab.com/libtiff/libtiff.git
|
||||
cd libtiff
|
||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
cd ..
|
||||
|
||||
- name: Build and Install leptonica
|
||||
@ -94,7 +94,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/DanBloomberg/leptonica.git
|
||||
cd leptonica
|
||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_PROG=OFF -DBUILD_SHARED_LIBS=ON
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
|
||||
- name: Remove not needed tools Before building tesseract
|
||||
shell: cmd
|
||||
@ -105,7 +105,7 @@ jobs:
|
||||
shell: cmd
|
||||
run: |
|
||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_LTO=ON -DBUILD_TRAINING_TOOLS=OFF -DFAST_FLOAT=ON -DGRAPHICS_DISABLED=ON -DOPENMP_BUILD=OFF
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake --build build --target install
|
||||
|
||||
- name: Upload Build Results
|
||||
uses: actions/upload-artifact@v4
|
||||
|
Loading…
Reference in New Issue
Block a user